@@ -619,7 +619,8 @@ class Actor(PandaObject, NodePath):
root=None, lodName=None):
"""drawInFront(self, string, int, string=None, key=None)
- Arrange geometry so the frontPart is drawn in front of backPart.
+ Arrange geometry so the frontPart(s) are drawn in front of
+ backPart.
If mode == 0, the geometry is simply arranged to be drawn in
the correct order.
@@ -26,8 +26,11 @@ class Mopath(PandaObject):
self.maxT = self.tNurbsCurve.getMaxT()
else:
print 'Mopath: no valid curves in file: %s' % filename
+
+ nodePath.removeNode()
print 'Mopath: no data in file: %s' % filename
def reset(self):
self.maxT = 0.0