diff --git a/direct/src/fsm/State.py b/direct/src/fsm/State.py index 3c31612904..6ec1692c15 100644 --- a/direct/src/fsm/State.py +++ b/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"""