mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Split up onChanged code a bit for easier debugging
This commit is contained in:
parent
c21ad3df08
commit
7c9b190bee
1 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue