diff --git a/direct/src/task/Task.py b/direct/src/task/Task.py index 34dce1d8bf..0475c2fd37 100644 --- a/direct/src/task/Task.py +++ b/direct/src/task/Task.py @@ -386,6 +386,7 @@ class TaskManager: index = self.doLaterList.add(task) if self.fVerbose: # Alert the world, a new task is born! + index = len(self.doLaterList) messenger.send('TaskManager-spawnDoLater', sentArgs = [task, task.name, index]) return task