Support local transforms for translations.

This commit is contained in:
Leonardo Zide 2020-05-08 17:53:53 -07:00
parent f309d3fb0a
commit 9e8400cbba

View file

@ -2834,6 +2834,9 @@ void lcModel::MoveSelectedObjects(const lcVector3& PieceDistance, const lcVector
{
if (Piece->IsSelected())
{
if (gMainWindow->GetLocalTransform())
TransformedPieceDistance = lcMul(PieceDistance, Piece->GetRelativeRotation());
Piece->MoveSelected(mCurrentStep, gMainWindow->GetAddKeys(), TransformedPieceDistance);
Piece->UpdatePosition(mCurrentStep);
Moved = true;