Made change in networkToLocalTime

This commit is contained in:
Gyedo Jeon 2008-09-18 00:35:27 +00:00
parent 35a6e9f49e
commit ded3f54e98

View File

@ -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'.