diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2015-11-27 15:57:53 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2015-11-27 18:53:32 +0300 |
commit | 9267b517d60c5356b9bd425d33c4c8e53cb77e15 (patch) | |
tree | 4eb0b66da84741ccb76979a3aa2acc1b9426d378 /cura/ConvexHullNode.py | |
parent | 743b403b2964e05d3b4b818341f0397cf46b490b (diff) |
Fix coding style issues
Diffstat (limited to 'cura/ConvexHullNode.py')
-rw-r--r-- | cura/ConvexHullNode.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cura/ConvexHullNode.py b/cura/ConvexHullNode.py index 4b36a11949..e7a585d412 100644 --- a/cura/ConvexHullNode.py +++ b/cura/ConvexHullNode.py @@ -29,7 +29,7 @@ class ConvexHullNode(SceneNode): self._node.parentChanged.connect(self._onNodeParentChanged) self._node.decoratorsChanged.connect(self._onNodeDecoratorsChanged) self._onNodeDecoratorsChanged(self._node) - self.convexHullHeadMesh = None + self._convex_hull_head_mesh = None self._hull = hull hull_points = self._hull.getPoints() @@ -38,7 +38,7 @@ class ConvexHullNode(SceneNode): self.setMeshData(hull_mesh) convex_hull_head = self._node.callDecoration("getConvexHullHead") if convex_hull_head: - self.convexHullHeadMesh = self.createHullMesh(convex_hull_head.getPoints()) + self._convex_hull_head_mesh = self.createHullMesh(convex_hull_head.getPoints()) def createHullMesh(self, hull_points): mesh = MeshData() @@ -68,8 +68,8 @@ class ConvexHullNode(SceneNode): if self.getParent(): self._material.setUniformValue("u_color", self._color) renderer.queueNode(self, material = self._material, transparent = True) - if self.convexHullHeadMesh: - renderer.queueNode(self, material = self._material,transparent = True, mesh = self.convexHullHeadMesh) + if self._convex_hull_head_mesh: + renderer.queueNode(self, material = self._material,transparent = True, mesh = self._convex_hull_head_mesh) return True |