mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
fa31ef95f1
commit
c1200b5b09
@ -193,6 +193,13 @@ class FSM(DirectObject):
|
||||
return 1
|
||||
# We can implicitly always transition to our final state.
|
||||
elif (aStateName == self.__finalState.getName()):
|
||||
if (self.__currentState == self.__finalState):
|
||||
# Do not do the transition if we are already in the final state
|
||||
FSM.notify.debug("[%s]: already in final state: %s" %
|
||||
(self.__name, aStateName))
|
||||
return 1
|
||||
else:
|
||||
# Force a transition to allow for cleanup
|
||||
FSM.notify.debug("[%s]: implicit transition to final state: %s" %
|
||||
(self.__name, aStateName))
|
||||
self.__transition(aState,
|
||||
|
Loading…
x
Reference in New Issue
Block a user