diff --git a/direct/src/task/TaskNew.py b/direct/src/task/TaskNew.py index a4307d4de0..8683098ea6 100644 --- a/direct/src/task/TaskNew.py +++ b/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):