Skip to content

Commit

Permalink
#5128: Face rotation seems to be working now
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Sep 16, 2021
1 parent e50ad5f commit 00521e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions radiantcore/brush/Face.cpp
Expand Up @@ -292,6 +292,7 @@ void Face::revertTransform()
planepts_assign(m_move_planeptsTransformed, m_move_planepts);
m_texdefTransformed = _texdef;
updateWinding();
EmitTextureCoordinates();
}

void Face::freezeTransform() {
Expand Down
Expand Up @@ -151,7 +151,7 @@ void TextureToolRotateManipulator::rotateSelected(const Vector2& pivot, double a
{
// Construct the full rotation around the pivot point
auto transform = Matrix3::getTranslation(-pivot);
transform.premultiplyBy(Matrix3::getRotation(angle));
transform.premultiplyBy(Matrix3::getRotation(-angle));
transform.premultiplyBy(Matrix3::getTranslation(pivot));

GlobalTextureToolSceneGraph().foreachSelectedNode([&](const textool::INode::Ptr& node)
Expand Down

0 comments on commit 00521e9

Please sign in to comment.