diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-03-16 17:08:06 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-03-16 17:08:06 +0300 |
commit | f736e74f77dcf6a89fa826df92a702d979da7e1c (patch) | |
tree | be0324885fc483002c45480e5692d57edcf9f494 /cura/ConvexHullNode.py | |
parent | 36b5c369cf237765478e384d22fb480f80ca11c3 (diff) |
Moved setting of color for convex hull to constructor
This should result in less color changes so should make it slightly faster
CURA-3419
Diffstat (limited to 'cura/ConvexHullNode.py')
-rw-r--r-- | cura/ConvexHullNode.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cura/ConvexHullNode.py b/cura/ConvexHullNode.py index 7282b0ffb2..bc2f7a7cf3 100644 --- a/cura/ConvexHullNode.py +++ b/cura/ConvexHullNode.py @@ -24,7 +24,7 @@ class ConvexHullNode(SceneNode): self._original_parent = parent # Color of the drawn convex hull - self._color = None + self._color = Color(*Application.getInstance().getTheme().getColor("convex_hull").getRgb()) # The y-coordinate of the convex hull mesh. Must not be 0, to prevent z-fighting. self._mesh_height = 0.1 @@ -73,8 +73,6 @@ class ConvexHullNode(SceneNode): return True def _onNodeDecoratorsChanged(self, node): - self._color = Color(*Application.getInstance().getTheme().getColor("convex_hull").getRgb()) - convex_hull_head = self._node.callDecoration("getConvexHullHead") if convex_hull_head: convex_hull_head_builder = MeshBuilder() |