Also handle sceneChanged when it's from the root

The rest of the code also seems to expect that
This commit is contained in:
Jaime van Kessel 2020-05-01 14:39:23 +02:00
parent d2be622d48
commit 245a4435e1
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -489,7 +489,7 @@ class CuraEngineBackend(QObject, Backend):
#
# \param source The scene node that was changed.
def _onSceneChanged(self, source: SceneNode) -> None:
if not source.callDecoration("isSliceable"):
if not source.callDecoration("isSliceable") and source != self._scene.getRoot():
return
# This case checks if the source node is a node that contains GCode. In this case the