CURA-4772 Create a CuraSceneNode instead of a SceneNode when reading a

GCode. Avoid creating an empty CuraSceneNode if the node is already an
instance of it.
This commit is contained in:
Diego Prado Gesto 2018-01-09 09:16:21 +01:00
parent 42b232756e
commit 4c8c4c78da
3 changed files with 8 additions and 6 deletions

View file

@ -106,7 +106,7 @@ class SimulationPass(RenderPass):
nozzle_node = node
nozzle_node.setVisible(False)
elif issubclass(type(node), SceneNode) and (node.getMeshData() or node.callDecoration("isBlockSlicing")) and node.isVisible() and node.callDecoration("getBuildPlateNumber") == active_build_plate:
elif issubclass(type(node), SceneNode) and (node.getMeshData() or node.callDecoration("isBlockSlicing")) and node.isVisible():
layer_data = node.callDecoration("getLayerData")
if not layer_data:
continue