From 3063689934399ccca01093d68b5efccfe575dc5c Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Mon, 24 Jun 2002 19:02:08 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/task/Task.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/direct/src/task/Task.py b/direct/src/task/Task.py index 8d1d6f9ee6..1aa874af55 100644 --- a/direct/src/task/Task.py +++ b/direct/src/task/Task.py @@ -310,6 +310,14 @@ class TaskManager: # Didnt find any, return 0 return 0 + def getTasksNamed(self, taskName): + # Get the tasks with this name + tasks = self.nameDict.get(taskName, []) + # Filter out the tasks that have been removed + if tasks: + tasks = filter(lambda task: not task.isRemoved(), tasks) + return tasks + def __doLaterProcessor(self, task): # Make a temp list of all the dolaters that expired this time # through so we can remove them after we are done with the