Explorar o código

*** empty log message ***

Mike Goslin %!s(int64=24) %!d(string=hai) anos
pai
achega
63b1dc4970
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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):
         # 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)
 
     def delete(self):