mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
added 'resetClock' event message
This commit is contained in:
parent
85e3e867b4
commit
2d76f5175a
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user