ソースを参照

*** empty log message ***

David Rose 25 年 前
コミット
f9a0d4acea
2 ファイル変更5 行追加1 行削除
  1. 2 1
      direct/src/actor/Actor.py
  2. 3 0
      direct/src/directutil/Mopath.py

+ 2 - 1
direct/src/actor/Actor.py

@@ -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.

+ 3 - 0
direct/src/directutil/Mopath.py

@@ -26,8 +26,11 @@ class Mopath(PandaObject):
 		self.maxT = self.tNurbsCurve.getMaxT()
 	    else:
 		print 'Mopath: no valid curves in file: %s' % filename
+
+            nodePath.removeNode()
 	else:
 	    print 'Mopath: no data in file: %s' % filename
+        
 
     def reset(self):
 	self.maxT = 0.0