Split up onChanged code a bit for easier debugging

This commit is contained in:
Jaime van Kessel 2015-09-22 13:47:52 +02:00
parent c21ad3df08
commit 7c9b190bee

View file

@ -223,10 +223,16 @@ class CuraEngineBackend(Backend):
self._socket.sendMessage(slice_message) self._socket.sendMessage(slice_message)
def _onSceneChanged(self, source): 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 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 return
self._onChanged() self._onChanged()