diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 5d67226c5b..ab3da92db0 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -529,6 +529,8 @@ class CuraApplication(QtApplication): op = AddSceneNodeOperation(node, self.getController().getScene().getRoot()) op.push() + self.getController().getScene().sceneChanged.emit(node) #Force scene change. + def _onJobFinished(self, job): if type(job) is not ReadMeshJob or not job.getResult(): return diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index 8fc6513e80..68d45d0b74 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -223,10 +223,16 @@ class CuraEngineBackend(Backend): self._socket.sendMessage(slice_message) def _onSceneChanged(self, source): - if (type(source) is not SceneNode) or (source is self._scene.getRoot()) or (source.getMeshData() is None): + if type(source) is not SceneNode: return - if(source.getMeshData().getVertices() is None): + if source is self._scene.getRoot(): + return + + if source.getMeshData() is None: + return + + if source.getMeshData().getVertices() is None: return self._onChanged() diff --git a/resources/machines/ultimaker2.json b/resources/machines/ultimaker2.json index e3bfa9e9c7..99f2247b0e 100644 --- a/resources/machines/ultimaker2.json +++ b/resources/machines/ultimaker2.json @@ -43,19 +43,19 @@ "default": [ [ -40, - 30 + 10 ], [ -40, - -10 + -30 ], [ 60, - -10 + 10 ], [ 60, - 30 + -30 ] ] },