Skip to content

Conversation

@behackl
Copy link
Member

@behackl behackl commented Nov 12, 2024

The current check against config.upto_animation_number checks whether the value is truthy, when in fact we should check whether it is non-negative.

Fixes #4012.

@behackl behackl added the pr:bugfix Bug fix for use in PRs solving a specific issue:bug label Nov 12, 2024
Copy link
Contributor

@chopan050 chopan050 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just tested and everything seems fine!

@chopan050 chopan050 added the pr:easy review There is nothing particular (i.e, it's about a general/small thing) to know for review! label Nov 13, 2024
@chopan050 chopan050 merged commit c516932 into ManimCommunity:main Nov 14, 2024
18 checks passed
@chopan050 chopan050 changed the title Fix scene skipping for config.upto_animation_number set to 0 to end after first animation Fix scene skipping for config.upto_animation_number (-n flag in CLI) set to 0 to end after first animation Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:bugfix Bug fix for use in PRs solving a specific issue:bug pr:easy review There is nothing particular (i.e, it's about a general/small thing) to know for review!

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Previewing manim output with option -n 0,0

3 participants