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-30 14:22:45 +0300
committerJaime van Kessel <nallath@gmail.com>2020-06-30 14:22:45 +0300
commitccd9a17be40bb2917082d336d13465c32d33e773 (patch)
treef5aa2711bcc0a783169519bd3a624219c34ef2f8 /cura/Scene
parent5055b53063e32aebd60c43b8acbfe475cffdb186 (diff)
Remove normals for ConvexHullNode
They are rendered flat, so no need to store the normals CURA-7106
Diffstat (limited to 'cura/Scene')
-rw-r--r--cura/Scene/ConvexHullNode.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/Scene/ConvexHullNode.py b/cura/Scene/ConvexHullNode.py
index cb4cffca12..f8a284bebe 100644
--- a/cura/Scene/ConvexHullNode.py
+++ b/cura/Scene/ConvexHullNode.py
@@ -61,6 +61,7 @@ class ConvexHullNode(SceneNode):
if hull_mesh_builder.addConvexPolygon(
self._hull.getPoints()[::], # bottom layer is reversed
self._mesh_height, color = self._color):
+ hull_mesh_builder.resetNormals()
hull_mesh = hull_mesh_builder.build()
self.setMeshData(hull_mesh)
@@ -68,7 +69,7 @@ class ConvexHullNode(SceneNode):
if hull_mesh_builder.addConvexPolygonExtrusion(
self._hull.getPoints()[::-1], # bottom layer is reversed
self._mesh_height - thickness, self._mesh_height, color = self._color):
-
+ hull_mesh_builder.resetNormals()
hull_mesh = hull_mesh_builder.build()
self.setMeshData(hull_mesh)