Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-06-22 18:18:22 +0300
committerJaime van Kessel <nallath@gmail.com>2020-06-22 18:18:22 +0300
commit570efc8310b245f85f91b2726478ea160c211d19 (patch)
tree6580a60cbd2f67fbd8ed6ad4b78e0f6f2ab5a1c1 /cura/Scene
parent16bc2071ee488a77568a3b9de4f755ff27b440ad (diff)
Remove unneeded checks in convex hull node
CURA-7106
Diffstat (limited to 'cura/Scene')
-rw-r--r--cura/Scene/ConvexHullNode.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/cura/Scene/ConvexHullNode.py b/cura/Scene/ConvexHullNode.py
index 765dae26a2..3046d04a67 100644
--- a/cura/Scene/ConvexHullNode.py
+++ b/cura/Scene/ConvexHullNode.py
@@ -80,14 +80,11 @@ class ConvexHullNode(SceneNode):
ConvexHullNode.shader.setUniformValue("u_diffuseColor", self._color)
ConvexHullNode.shader.setUniformValue("u_opacity", 0.6)
- if self.getParent():
- if self.getMeshData() and isinstance(self._node, SceneNode) and self._node.callDecoration("getBuildPlateNumber") == Application.getInstance().getMultiBuildPlateModel().activeBuildPlate:
- # The object itself (+ adhesion in one-at-a-time mode)
- renderer.queueNode(self, transparent = True, shader = ConvexHullNode.shader, backface_cull = True, sort = -8)
- if self._convex_hull_head_mesh:
- # The full head. Rendered as a hint to the user: If this area overlaps another object A; this object
- # cannot be printed after A, because the head would hit A while printing the current object
- renderer.queueNode(self, shader = ConvexHullNode.shader, transparent = True, mesh = self._convex_hull_head_mesh, backface_cull = True, sort = -8)
+ renderer.queueNode(self, transparent = True, shader = ConvexHullNode.shader, backface_cull = True, sort = -8)
+ if self._convex_hull_head_mesh:
+ # The full head. Rendered as a hint to the user: If this area overlaps another object A; this object
+ # cannot be printed after A, because the head would hit A while printing the current object
+ renderer.queueNode(self, shader = ConvexHullNode.shader, transparent = True, mesh = self._convex_hull_head_mesh, backface_cull = True, sort = -8)
return True