mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Support local transforms for translations.
This commit is contained in:
parent
f309d3fb0a
commit
9e8400cbba
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue