Browse Source

replace task bug

David Rose 17 years ago
parent
commit
2e01bf163f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/task/TaskNew.py

+ 1 - 1
direct/src/task/TaskNew.py

@@ -516,7 +516,7 @@ class TaskManager:
 
     def __tryReplaceTaskMethod(self, task, oldMethod, newFunction):
         if not isinstance(task, PythonTask):
-            return
+            return 0
         
         method = task.getFunction()
         if (type(method) == types.MethodType):