diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2015-12-08 15:49:49 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2015-12-14 15:56:32 +0300 |
commit | 435186e6d1435afa399f877612116473917cde45 (patch) | |
tree | 09fdd1b9f2cb56c7bb7515dcbc9d5ef7527b2cff /cura/ConvexHullNode.py | |
parent | 63c80c42ceec483254dc94109baf0c22e6db0ff7 (diff) |
Fix convex hull and layer view rendering
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 9a0cd9f3c3..dc2b95756b 100644 --- a/cura/ConvexHullNode.py +++ b/cura/ConvexHullNode.py @@ -24,7 +24,7 @@ class ConvexHullNode(SceneNode): self._inherit_orientation = False self._inherit_scale = False - self._color = Color(35, 35, 35, 0.5) + self._color = Color(35, 35, 35, 128) self._node = node self._node.transformationChanged.connect(self._onNodePositionChanged) @@ -66,9 +66,9 @@ class ConvexHullNode(SceneNode): def render(self, renderer): if not self._shader: self._shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "default.shader")) + self._shader.setUniformValue("u_color", self._color) if self.getParent(): - 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) |