From 25dd8ad1443e08cfb078e47661f63146617d7f7b Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Wed, 2 Apr 2003 21:32:28 +0000 Subject: [PATCH] Special case code for non-real time rendering (movies) --- direct/src/distributed/ClockDelta.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/distributed/ClockDelta.py b/direct/src/distributed/ClockDelta.py index 121a216f03..2226752552 100644 --- a/direct/src/distributed/ClockDelta.py +++ b/direct/src/distributed/ClockDelta.py @@ -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))