diff --git a/direct/src/fsm/FSM.py b/direct/src/fsm/FSM.py index 2601729839..b7a58018f1 100644 --- a/direct/src/fsm/FSM.py +++ b/direct/src/fsm/FSM.py @@ -7,6 +7,7 @@ class FSM(DirectObject): # create FSM DirectNotify category notify = directNotify.newCategory("FSM") + notify.setDebug(1) # special methods diff --git a/direct/src/tkpanels/FSMInspector.py b/direct/src/tkpanels/FSMInspector.py index 1496a96953..1daa966735 100644 --- a/direct/src/tkpanels/FSMInspector.py +++ b/direct/src/tkpanels/FSMInspector.py @@ -20,7 +20,7 @@ class FSMInspector(AppShell): def __init__(self, fsm, **kw): INITOPT = Pmw.INITOPT optiondefs = ( - ('title', self.appname, None), + ('title', fsm.getName(), None), ('gridSize', '0.25i', self._setGridSize), ) self.defineoptions(kw, optiondefs) @@ -424,6 +424,8 @@ class StateInspector(Pmw.MegaArchetype): def inspectSubMachine(self): print 'inspect ' + self.tag + ' subMachine' + for childFSM in self.state.getChildren(): + FSMInspector(childFSM) def enteredState(self): self._canvas.itemconfigure(self.marker, fill = 'Red')