Skip to content

fix(animation): LaggedStartMap Restore builds subanimations#4869

Closed
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/4861-laggedstartmap-restore
Closed

fix(animation): LaggedStartMap Restore builds subanimations#4869
Chessing234 wants to merge 2 commits into
ManimCommunity:mainfrom
Chessing234:fix/4861-laggedstartmap-restore

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Wrap non-tuple arg_creator results as a single constructor arg so Restore(mob) is not called as Restore(*mob)
  • Raise a clear error when the mapped mobject has no submobjects

Bug

LaggedStartMap(Restore, movers) could produce zero subanimations when the default identity arg_creator returned a mobject whose __iter__ is empty, triggering ValueError: Trying to play LaggedStartMap without animations.

Fixes #4861

Test plan

  • pytest tests/module/animation/test_composition.py -k laggedstartmap -o addopts=""

Made with Cursor

Chessing234 and others added 2 commits July 5, 2026 21:14
Default arg_creator returned bare mobjects that were unpacked via
Mobject.__iter__, so Restore(*mob) could build zero subanimations.
Wrap non-tuple values and error clearly on empty targets.

Fixes ManimCommunity#4861

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LaggedStartMap error in v0.20.1

2 participants