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:
Leonardo Zide authored and GitHub committed 2026-10-20 20:47:28 -07:00
commit b6ab0c4c3b
1 file changed
+2 -1
+2 -1
View File
@@ -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;