Browse Source

taskMgr not a global on AI

David Rose 17 years ago
parent
commit
c0e0d63de4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/showbase/EventManager.py

+ 2 - 0
direct/src/showbase/EventManager.py

@@ -212,4 +212,6 @@ class EventManager:
         taskMgr.add(self.eventLoopTask, 'eventManager')
 
     def shutdown(self):
+        # Should be safe to import the global taskMgr by now.
+        from direct.task.TaskManagerGlobal import taskMgr
         taskMgr.remove('eventManager')