Skip to content

Conversation

@RinZ27
Copy link
Contributor

@RinZ27 RinZ27 commented Feb 1, 2026

I noticed a potential 'UnboundLocalError' in 'PolarPlane.get_coordinate_labels'. The variable 'a_tex' is defined within multiple 'if/elif' blocks but lacks a default initialization or an 'else' catch-all. If 'self.azimuth_units' were to contain an unexpected value (e.g. through manual modification after initialization), the subsequent 'VGroup(*a_tex)' call would crash. This change ensures 'a_tex' is always defined.

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! Thanks for this change!

@chopan050 chopan050 merged commit 2f38426 into ManimCommunity:main Feb 2, 2026
15 checks passed
@RinZ27 RinZ27 deleted the fix/polarplane-unbound-local branch February 2, 2026 11:43
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.

2 participants