mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-21 06:32:33 -04:00
replace task bug
This commit is contained in:
parent
7b7b973a7a
commit
2e01bf163f
@ -516,7 +516,7 @@ class TaskManager:
|
|||||||
|
|
||||||
def __tryReplaceTaskMethod(self, task, oldMethod, newFunction):
|
def __tryReplaceTaskMethod(self, task, oldMethod, newFunction):
|
||||||
if not isinstance(task, PythonTask):
|
if not isinstance(task, PythonTask):
|
||||||
return
|
return 0
|
||||||
|
|
||||||
method = task.getFunction()
|
method = task.getFunction()
|
||||||
if (type(method) == types.MethodType):
|
if (type(method) == types.MethodType):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user