Skip to content

Commit

Permalink
fix: missing history for item slice
Browse files Browse the repository at this point in the history
  • Loading branch information
jkjkil4 committed Jul 1, 2024
1 parent 99c3e35 commit 42ec16c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions janim/anims/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,16 @@ def build(self, *, quiet=False) -> TimelineAnim:
'automatically generated a duration of {duration}s')
.format(name=self.__class__.__name__, duration=DEFAULT_DURATION)
)

self.cleanup_display()

for item, ih in self.items_history.items():
if ih.history.has_record():
continue
item_copy = item.store()
ih.history.record_as_time(0, item_copy)
ih.history_without_dynamic.record_as_time(0, item_copy)

global_anim = TimelineAnim(self)

if not quiet: # pragma: no cover
Expand Down

0 comments on commit 42ec16c

Please sign in to comment.