mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
direct: Fix actor initialization
This commit is contained in:
parent
2b84bfc145
commit
acbf265e54
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user