瀏覽代碼

*** empty log message ***

Mike Goslin 24 年之前
父節點
當前提交
63b1dc4970
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      direct/src/actor/DistributedActor.py

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

@@ -21,7 +21,8 @@ class DistributedActor(DistributedNode.DistributedNode, Actor.Actor):
 
 
     def disable(self):
     def disable(self):
         # remove all anims, on all parts and all lods
         # remove all anims, on all parts and all lods
-        Actor.Actor.unloadAnims(self, None, None, None)
+	if (not self.isEmpty()):
+            Actor.Actor.unloadAnims(self, None, None, None)
         DistributedNode.DistributedNode.disable(self)
         DistributedNode.DistributedNode.disable(self)
 
 
     def delete(self):
     def delete(self):