Browse Source

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

Mark Mine 23 years ago
parent
commit
25dd8ad144
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/distributed/ClockDelta.py

+ 4 - 0
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))