mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:39:03 +08:00
Split up onChanged code a bit for easier debugging
This commit is contained in:
parent
c21ad3df08
commit
7c9b190bee
@ -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…
x
Reference in New Issue
Block a user