Fixed multiple selection.

This commit is contained in:
Leonardo Zide 2017-11-19 13:27:42 -08:00
parent 2b14b67eb1
commit 80c226db56

View file

@ -2002,7 +2002,7 @@ void View::UpdateTrackTool()
lcObjectSection ObjectSection = FindObjectUnderPointer(false, false);
lcObject* Object = ObjectSection.Object;
if (Object && Object->IsPiece() && ObjectSection.Section == LC_PIECE_SECTION_POSITION)
if (Object && Object->IsPiece() && ObjectSection.Section == LC_PIECE_SECTION_POSITION && Object->IsSelected())
{
lcPiece* Piece = (lcPiece*)Object;
mMouseDownPosition = Piece->mModelWorld.GetTranslation();