Possible fix for CURA-3334

This commit is contained in:
Jack Ha 2017-02-22 10:38:07 +01:00
parent e32c67ccd3
commit c785256ac4

View file

@ -700,7 +700,7 @@ class CuraApplication(QtApplication):
self.getController().setActiveTool(None)
def _onToolOperationStopped(self, event):
if self._center_after_select:
if self._center_after_select and Selection.getSelectedObject(0) is not None:
self._center_after_select = False
self._camera_animation.setStart(self.getController().getTool("CameraTool").getOrigin())
self._camera_animation.setTarget(Selection.getSelectedObject(0).getWorldPosition())