mirror of
https://github.com/leozide/leocad.git
synced 2026-10-26 22:10:32 +00:00
Merge pull request #1043 from PontusPih/pr/free-move-rotation
Fix the rotation of a selection moved with the free move tool
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -5741,7 +5741,8 @@ void lcModel::UpdateFreeMoveTool(lcPiece* MousePiece, const lcMatrix44& StartTra
|
||||
lcMatrix33 RelativeRotation = MousePiece->GetRelativeRotation();
|
||||
|
||||
lcMatrix33 WorldToFocusMatrix = lcMatrix33AffineInverse(RelativeRotation);
|
||||
RotationMatrix = lcMul(RotationMatrix, RelativeRotation);
|
||||
// Rotate() expects the rotation in the focus frame.
|
||||
RotationMatrix = lcMul(RelativeRotation, RotationMatrix);
|
||||
|
||||
int Flags;
|
||||
std::vector<lcObject*> Selection;
|
||||
|
||||
Reference in new issue
Block a user