From 457c73ab21c3901303b6f2e93226a7862bd25922 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Fri, 9 Mar 2001 18:56:22 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/fsm/FSM.py | 2 +- direct/src/showbase/Messenger.py | 4 ++-- direct/src/showbase/ShowBase.py | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/direct/src/fsm/FSM.py b/direct/src/fsm/FSM.py index 967916027c..fb75945d55 100644 --- a/direct/src/fsm/FSM.py +++ b/direct/src/fsm/FSM.py @@ -7,7 +7,7 @@ class FSM(DirectObject): # create FSM DirectNotify category notify = directNotify.newCategory("FSM") - # notify.setDebug(1) + notify.setDebug(1) # special methods diff --git a/direct/src/showbase/Messenger.py b/direct/src/showbase/Messenger.py index 9ff9281bfa..aa7b9d34f7 100644 --- a/direct/src/showbase/Messenger.py +++ b/direct/src/showbase/Messenger.py @@ -38,7 +38,7 @@ class Messenger: """ Messenger.notify.debug('object: ' + `object` - + '\n accept: ' + `event` + + '\n now accepting: ' + `event` + '\n method: ' + `method` + '\n extraArgs: ' + `extraArgs` + '\n persistent: ' + `persistent`) @@ -52,7 +52,7 @@ class Messenger: It is safe to call even if it was not alread """ - Messenger.notify.debug(`object` + '\n ignore: ' + `event`) + Messenger.notify.debug(`object` + '\n now ignoring: ' + `event`) if self.dict.has_key(event): # Find the dictionary of all the objects accepting this event diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 77307f52e3..405b751489 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -18,6 +18,7 @@ import ClockObject import Transitions import Loader import time +import FSM globalClock = ClockObject.ClockObject.getGlobalClock() @@ -37,6 +38,8 @@ class ShowBase: self.wantStats = self.config.GetBool('want-stats', 0) taskMgr.taskTimerVerbose = self.config.GetBool('task-timer-verbose', 0) + fsmDebug = self.config.GetBool('fsm-debug', 0) + FSM.FSM.notify.setDebug(fsmDebug) self.initialState = NodeAttributes() # Set a default "off color" (i.e. use poly color) for color transitions