state methods are allowed to be None
This commit is contained in:
parent
4a01fe9851
commit
564bb18332
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue