diff --git a/cura/ConvexHullJob.py b/cura/ConvexHullJob.py index c639528ec2..690f8a363d 100644 --- a/cura/ConvexHullJob.py +++ b/cura/ConvexHullJob.py @@ -49,7 +49,9 @@ class ConvexHullJob(Job): self._node.callDecoration("setConvexHullNode", hull_node) self._node.callDecoration("setConvexHull", hull) self._node.callDecoration("setConvexHullJob", None) - #if self._node.getParent().callDecoration("isGroup"): + + if self._node.getParent().callDecoration("isGroup"): + self._node.getParent().callDecoration("setConvexHull", None) # if self._node.getParent().callDecoration("getConvexHull"): # self._node.getParent().callDecoration("getConvexHullNode").setParent(None) diff --git a/cura/ConvexHullNode.py b/cura/ConvexHullNode.py index 87da8f9a3d..e24d79522c 100644 --- a/cura/ConvexHullNode.py +++ b/cura/ConvexHullNode.py @@ -56,10 +56,11 @@ class ConvexHullNode(SceneNode): self._material = renderer.createMaterial(Resources.getPath(Resources.ShadersLocation, "basic.vert"), Resources.getPath(Resources.ShadersLocation, "color.frag")) self._material.setUniformValue("u_color", Color(35, 35, 35, 128)) - - renderer.queueNode(self, material = self._material, transparent = True) + if self.getParent(): + renderer.queueNode(self, material = self._material, transparent = True) return True + def _onNodePositionChanged(self, node): #self.setPosition(node.getWorldPosition())