Browse Source

Made change in networkToLocalTime

Gyedo Jeon 17 years ago
parent
commit
ded3f54e98
1 changed files with 5 additions and 2 deletions
  1. 5 2
      direct/src/distributed/ClockDelta.py

+ 5 - 2
direct/src/distributed/ClockDelta.py

@@ -244,8 +244,11 @@ 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:
+        # Are we in non-real-time mode (i.e. filming a movie)?  If you
+        # set movie-network-time 1, then we'll circumvent this logic
+        # and always return now.
+        if self.globalClock.getMode() == ClockObject.MNonRealTime and \
+           base.config.GetBool('movie-network-time', False):
             return now
 
         # First, determine what network time we have for 'now'.