From f736e74f77dcf6a89fa826df92a702d979da7e1c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 16 Mar 2017 15:08:06 +0100 Subject: [PATCH] Moved setting of color for convex hull to constructor This should result in less color changes so should make it slightly faster CURA-3419 --- cura/ConvexHullNode.py | 4 +--- 1 file changed, 1 insertion(+), 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()