mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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:
|
if now == None:
|
||||||
now = self.globalClock.getRealTime()
|
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'.
|
# First, determine what network time we have for 'now'.
|
||||||
ntime = int(math.floor((now - self.delta) * NetworkTimePrecision + 0.5))
|
ntime = int(math.floor((now - self.delta) * NetworkTimePrecision + 0.5))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user