mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
verbose bug fix
This commit is contained in:
parent
05b08da109
commit
9e78047e75
@ -279,6 +279,7 @@ class DoLaterList(list):
|
|||||||
else:
|
else:
|
||||||
lo = mid+1
|
lo = mid+1
|
||||||
list.insert(self, lo, task)
|
list.insert(self, lo, task)
|
||||||
|
return lo
|
||||||
|
|
||||||
class TaskManager:
|
class TaskManager:
|
||||||
|
|
||||||
@ -381,7 +382,7 @@ class TaskManager:
|
|||||||
task.setStartTimeFrame(currentTime, self.currentFrame)
|
task.setStartTimeFrame(currentTime, self.currentFrame)
|
||||||
# Cache the time we should wake up for easier sorting
|
# Cache the time we should wake up for easier sorting
|
||||||
task.wakeTime = task.starttime + task.delayTime
|
task.wakeTime = task.starttime + task.delayTime
|
||||||
self.doLaterList.add(task)
|
index = self.doLaterList.add(task)
|
||||||
if self.fVerbose:
|
if self.fVerbose:
|
||||||
# Alert the world, a new task is born!
|
# Alert the world, a new task is born!
|
||||||
messenger.send('TaskManager-spawnDoLater',
|
messenger.send('TaskManager-spawnDoLater',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user