Bladeren bron

update comment

David Rose 23 jaren geleden
bovenliggende
commit
0bb406b5b4
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      direct/src/fsm/FSM.py

+ 6 - 0
direct/src/fsm/FSM.py

@@ -198,6 +198,12 @@ class FSM(DirectObject):
         Return true is transition exists to given state,
         false otherwise.
         """
+
+        # If you trigger this assertion failure, you must have
+        # recursively requested a state transition from within the
+        # exitState() function for the previous state.  This is not
+        # supported because we're not fully transitioned into the new
+        # state yet.
         assert(not self.__internalStateInFlux)
 
         if not self.__currentState: