diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2015-12-02 19:17:27 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2015-12-14 15:56:32 +0300 |
commit | 9900a0b3273496e8027521f80a11143ac287efdf (patch) | |
tree | 8ef825dd122ab7b7191e0d687c35181d289f8990 /cura/ConvexHullNode.py | |
parent | 7395f37efe049b4b053048a70e151546a915dedd (diff) |
Fix ConvexHullNode so it renders
Diffstat (limited to 'cura/ConvexHullNode.py')
-rw-r--r-- | cura/ConvexHullNode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/ConvexHullNode.py b/cura/ConvexHullNode.py index c7a8257ef0..9a0cd9f3c3 100644 --- a/cura/ConvexHullNode.py +++ b/cura/ConvexHullNode.py @@ -17,7 +17,7 @@ class ConvexHullNode(SceneNode): self.setCalculateBoundingBox(False) - self._material = None + self._shader = None self._original_parent = parent @@ -68,7 +68,7 @@ class ConvexHullNode(SceneNode): self._shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "default.shader")) if self.getParent(): - self._material.setUniformValue("u_color", self._color) + self._shader.setUniformValue("u_color", self._color) renderer.queueNode(self, transparent = True, shader = self._shader) if self._convex_hull_head_mesh: renderer.queueNode(self, shader = self._shader, transparent = True, mesh = self._convex_hull_head_mesh) |