From 564bb18332e42a40271790dd1ef6032d12ec5064 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Mon, 22 Sep 2003 21:05:33 +0000 Subject: [PATCH] state methods are allowed to be None --- direct/src/fsm/State.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/fsm/State.py b/direct/src/fsm/State.py index b41c06c9d2..f94008b2fa 100644 --- a/direct/src/fsm/State.py +++ b/direct/src/fsm/State.py @@ -109,6 +109,9 @@ class State(DirectObject): def redefineFunc(self, oldMethod, newMethod, map): if not FsmRedefine: return + # Methods are allowed to be None + if oldMethod is None: + return if map.has_key(oldMethod): # Get the list of states for the old function stateList = map[oldMethod]