Fix SolidView to use isNonPrintingMesh decorator call

CURA-4705
This commit is contained in:
Lipu Fei 2017-12-20 16:48:57 +01:00
parent ae86a838e0
commit 107f6aff78

View file

@ -110,7 +110,7 @@ class SolidView(View):
except ValueError:
pass
if getattr(node, "_non_printing_mesh", False):
if node.callDecoration("isNonPrintingMesh"):
if per_mesh_stack and (per_mesh_stack.getProperty("infill_mesh", "value") or per_mesh_stack.getProperty("cutting_mesh", "value")):
renderer.queueNode(node, shader = self._non_printing_shader, uniforms = uniforms, transparent = True)
else: