Remove unneeded checks in convex hull node

CURA-7106
This commit is contained in:
Jaime van Kessel 2020-06-22 17:18:22 +02:00
parent 16bc2071ee
commit 570efc8310
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 6 additions and 9 deletions

View file

@ -80,9 +80,6 @@ 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