mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
better class name printing for inheritors of FSM
This commit is contained in:
parent
eb8ae8461d
commit
e502aa8180
@ -403,8 +403,9 @@ class FSM(DirectObject.DirectObject):
|
||||
"""
|
||||
Print out something useful about the fsm
|
||||
"""
|
||||
className = self.__class__.__name__
|
||||
if self.state:
|
||||
str = ("FSM " + self.name + ' in state "' + self.state + '"')
|
||||
str = ('%s FSM:%s in state "%s"' % (className, self.name, self.state))
|
||||
else:
|
||||
str = ("FSM " + self.name + ' not in any state')
|
||||
str = ('%s FSM:%s not in any state' % (className, self.name))
|
||||
return str
|
||||
|
Loading…
x
Reference in New Issue
Block a user