Browse Source

direct: Fix actor initialization

Daniel 5 years ago
parent
commit
acbf265e54
1 changed files with 4 additions and 2 deletions
  1. 4 2
      direct/src/actor/Actor.py

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

@@ -163,8 +163,10 @@ class Actor(DirectObject, NodePath):
             #the actor for a few frames, otherwise it has no effect
             #the actor for a few frames, otherwise it has no effect
             a.fixBounds()
             a.fixBounds()
         """
         """
-        if not hasattr(self, 'Actor_initialized'):
-            self.Actor_initialized = 1
+        if hasattr(self, 'Actor_initialized'):
+            return
+
+        self.Actor_initialized = 1
 
 
         # initialize our NodePath essence
         # initialize our NodePath essence
         NodePath.__init__(self)
         NodePath.__init__(self)