GenerateTool doesn't call boundsChanged if no currentGenerator

This commit is contained in:
David Vierra 2015-05-24 04:45:55 -10:00
parent 15cb5e03d7
commit 519b21329a

View File

@ -305,6 +305,9 @@ class GenerateTool(EditorTool):
def boundsDidChange(self, bounds):
# box still being resized
if not self.currentGenerator:
return
if not self.livePreview:
return
@ -314,6 +317,8 @@ class GenerateTool(EditorTool):
def boundsDidChangeDone(self, bounds, newSelection):
# box finished resize
if not self.currentGenerator:
return
self.previewBounds = bounds
self.schematicBounds = bounds