mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Special case code for non-real time rendering (movies)
This commit is contained in:
parent
385a93d64b
commit
25dd8ad144
@ -79,6 +79,10 @@ class ClockDelta(DirectObject.DirectObject):
|
||||
if now == None:
|
||||
now = self.globalClock.getRealTime()
|
||||
|
||||
# Are we in non-real-time mode (i.e. filming a movie)? Just return now
|
||||
if self.globalClock.getMode() == ClockObject.MNonRealTime:
|
||||
return now
|
||||
|
||||
# First, determine what network time we have for 'now'.
|
||||
ntime = int(math.floor((now - self.delta) * NetworkTimePrecision + 0.5))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user