Fixed setting the position of rotated objects using the properties pane.

This commit is contained in:
leo 2016-06-14 00:16:53 +00:00
parent acfa6784a7
commit b6d0495a55

View file

@ -559,7 +559,7 @@ void lcQPropertiesTree::slotReturnPressed()
lcVector3 Distance = Position - Center;
Model->MoveSelectedObjects(Distance, Distance, true, false, true, true);
Model->MoveSelectedObjects(Distance, Distance, false, false, true, true);
}
else if (Item == partRotationX || Item == partRotationY || Item == partRotationZ)
{
@ -615,7 +615,7 @@ void lcQPropertiesTree::slotReturnPressed()
lcVector3 Distance = Position - Center;
Model->MoveSelectedObjects(Distance, Distance, true, false, true, true);
Model->MoveSelectedObjects(Distance, Distance, false, false, true, true);
}
else if (Item == cameraTargetX || Item == cameraTargetY || Item == cameraTargetZ)
{
@ -632,7 +632,7 @@ void lcQPropertiesTree::slotReturnPressed()
lcVector3 Distance = Position - Center;
Model->MoveSelectedObjects(Distance, Distance, true, false, true, true);
Model->MoveSelectedObjects(Distance, Distance, false, false, true, true);
}
else if (Item == cameraUpX || Item == cameraUpY || Item == cameraUpZ)
{
@ -649,7 +649,7 @@ void lcQPropertiesTree::slotReturnPressed()
lcVector3 Distance = Position - Center;
Model->MoveSelectedObjects(Distance, Distance, true, false, true, true);
Model->MoveSelectedObjects(Distance, Distance, false, false, true, true);
}
else if (Item == cameraFOV)
{