Skip to content

Commit

Permalink
Fix move tool weirdness when no selection is made
Browse files Browse the repository at this point in the history
  • Loading branch information
codewarrior0 committed Jun 30, 2017
1 parent 3ac859d commit c2d4544
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mcedit2/editortools/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def scaleChanged(self, scale, live):
self.editorSession.updateView()

def pointInputChanged(self, value):
if value is not None:
if value is not None and self.currentImport is not None:
self.importDidMove(value, self.currentImport.basePosition)

# --- Pending imports ---
Expand Down Expand Up @@ -250,6 +250,8 @@ def toolActive(self):
self.editorSession.selectionTool.hideSelectionWalls = True
if self.currentImport is None:
self.rotationInput.rotation = (0, 0, 0)
self.scaleInput.scale = (1., 1., 1)

if self.editorSession.currentSelection is None:
return

Expand Down

0 comments on commit c2d4544

Please sign in to comment.