mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Do not render the convex hull node unless the object is selected
Contributes to #52
This commit is contained in:
parent
2aa2d4d1a8
commit
9849283144
2 changed files with 11 additions and 0 deletions
|
@ -48,6 +48,9 @@ class ConvexHullNode(SceneNode):
|
|||
|
||||
self.setMeshData(mesh)
|
||||
|
||||
def getWatchedNode(self):
|
||||
return self._node
|
||||
|
||||
def render(self, renderer):
|
||||
if not self._material:
|
||||
self._material = renderer.createMaterial(Resources.getPath(Resources.ShadersLocation, "basic.vert"), Resources.getPath(Resources.ShadersLocation, "color.frag"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue