direct: Fix actor initialization

This commit is contained in:
Daniel 2021-01-02 02:57:13 +02:00
parent 2b84bfc145
commit acbf265e54

View File

@ -163,8 +163,10 @@ class Actor(DirectObject, NodePath):
#the actor for a few frames, otherwise it has no effect
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
NodePath.__init__(self)