mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
allowing remove() to be called on a removed task.
This commit is contained in:
parent
2410cbc67c
commit
21b131f9ba
@ -80,6 +80,7 @@ class Task:
|
|||||||
return self.__onDoLaterList
|
return self.__onDoLaterList
|
||||||
|
|
||||||
def remove(self):
|
def remove(self):
|
||||||
|
if not self.__removed:
|
||||||
self.__removed = 1
|
self.__removed = 1
|
||||||
# Remove any refs to real objects
|
# Remove any refs to real objects
|
||||||
# In case we hang around the doLaterList for a while
|
# In case we hang around the doLaterList for a while
|
||||||
|
Loading…
x
Reference in New Issue
Block a user