This commit is contained in:
j 2017-01-07 16:42:09 +01:00
parent d6ef829998
commit 308513b5de

View file

@ -32,7 +32,7 @@ class Timelines():
self.tile_path = tile_path
self.cuts_path = cuts_path
self.detect_cuts = cuts_path != None
self.detect_cuts = cuts_path is not None
self.points = points
@ -138,7 +138,7 @@ class Timelines():
self.large_tile_last_w = self.frame_n % self.large_tile_w or self.large_tile_w
if self.render_small_tiles:
self.small_tile_n = int(math.ceil(self.duration / self.small_tile_w))
self.small_tile_last_w =int(math.ceil(self.duration % self.small_tile_w)) or self.small_tile_w
self.small_tile_last_w = int(math.ceil(self.duration % self.small_tile_w)) or self.small_tile_w
if self.render_antialias or self.render_audio:
self._open_full_tile()
@ -532,7 +532,7 @@ class Profiler():
def set_task(self, task):
now = time()
if self.task:
if not self.task in self.times:
if self.task not in self.times:
self.times[self.task] = 0
else:
self.times[self.task] += now - self.time