mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added function isInTransition() so we don't have to query myFsm.state
This commit is contained in:
parent
3c401daec1
commit
fbeb4d6c3f
@ -187,6 +187,9 @@ class FSM(DirectObject):
|
||||
return self.state
|
||||
return self.newState
|
||||
|
||||
def isInTransition(self):
|
||||
return self.state == None
|
||||
|
||||
def forceTransition(self, request, *args):
|
||||
"""Changes unconditionally to the indicated state. This
|
||||
bypasses the filterState() function, and just calls
|
||||
|
Loading…
x
Reference in New Issue
Block a user