Special case code for non-real time rendering (movies)

This commit is contained in:
Mark Mine 2003-04-02 21:32:28 +00:00
parent 385a93d64b
commit 25dd8ad144

View File

@ -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))