Do not render the convex hull node unless the object is selected

Contributes to #52
This commit is contained in:
Arjen Hiemstra 2015-06-16 13:11:19 +02:00
parent 2aa2d4d1a8
commit 9849283144
2 changed files with 11 additions and 0 deletions

View file

@ -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"))