Browse Source

*** empty log message ***

Joe Shochet 25 years ago
parent
commit
4eeab21a64
1 changed files with 6 additions and 0 deletions
  1. 6 0
      direct/src/fsm/State.py

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

@@ -172,6 +172,12 @@ class State(DirectObject):
         else:
             self.__FSMList.append(FSM)
 
+    def removeChild(self, FSM):
+        """addChild(self, FSM)
+        Add the given FSM to list of child FSMs"""
+        if FSM in self.__FSMList:
+            self.__FSMList.remove(FSM)
+
     def hasChildren(self):
         """hasChildren(self)
         Return true if state has child FSMs"""