mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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.
|
# states.
|
||||||
self.__requestQueue = []
|
self.__requestQueue = []
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
from direct.fsm.ClassicFSM import _debugFsms
|
||||||
|
import weakref
|
||||||
|
_debugFsms[name]=weakref.ref(self)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.cleanup()
|
self.cleanup()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user