mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
added new-style FSMs to printDebugFsmList
This commit is contained in:
parent
0338461895
commit
4c317f7e38
@ -150,6 +150,11 @@ class FSM(DirectObject.DirectObject):
|
||||
# states.
|
||||
self.__requestQueue = []
|
||||
|
||||
if __debug__:
|
||||
from direct.fsm.ClassicFSM import _debugFsms
|
||||
import weakref
|
||||
_debugFsms[name]=weakref.ref(self)
|
||||
|
||||
def __del__(self):
|
||||
self.cleanup()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user