mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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
|
# Set the clock to have last frame's time in case we were
|
||||||
# Paused at the prompt for a long time
|
# Paused at the prompt for a long time
|
||||||
t = globalClock.getFrameTime()
|
t = globalClock.getFrameTime()
|
||||||
|
timeDelta = t - globalClock.getRealTime()
|
||||||
globalClock.setRealTime(t)
|
globalClock.setRealTime(t)
|
||||||
|
|
||||||
|
messenger.send("resetClock", [timeDelta])
|
||||||
|
|
||||||
if self.resumeFunc != None:
|
if self.resumeFunc != None:
|
||||||
self.resumeFunc()
|
self.resumeFunc()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user