Fix move tool adding spurious "Move Object" undos in many cases

This commit is contained in:
David Vierra 2016-09-16 03:58:21 -10:00
parent d2268a35af
commit 4ed9d10174

View File

@ -144,6 +144,9 @@ class MoveTool(EditorTool):
# --- Pending imports ---
def importDidMove(self, newPoint, oldPoint):
if self.currentImport is None:
return
if newPoint != oldPoint:
command = MoveOffsetCommand(oldPoint, newPoint, self.currentImport)
self.editorSession.pushCommand(command)