diff --git a/direct/src/task/Task.py b/direct/src/task/Task.py index d7f8031f45..5119fe9709 100644 --- a/direct/src/task/Task.py +++ b/direct/src/task/Task.py @@ -482,8 +482,11 @@ class TaskManager: # Set the clock to have last frame's time in case we were # Paused at the prompt for a long time t = globalClock.getFrameTime() + timeDelta = t - globalClock.getRealTime() globalClock.setRealTime(t) + messenger.send("resetClock", [timeDelta]) + if self.resumeFunc != None: self.resumeFunc()