mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-24 07:29:13 -05:00
added 'resetClock' event message
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user