ManimCommunity / ManimCommunity/manim

add_updater does not correctly retrieve the objects' name introduced in main file when embed with OpenGL.

Open
#4,018 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

When I enter the interactive mode through `self.interactive_embed()` with OpenGL, all objects imported in the main program, custom variables, and objects cannot be used within the `add_updater`. Here is an example: even though `from manim import *` has been used to import all Manim objects in the main program, using Dot in always_redraw is considered undefined.

![opengl_bug](https://github.com/user-attachments/assets/314babf0-03f4-4f20-b31e-2d27ba3bad86)
![opengl_bug02](https://github.com/user-attachments/assets/73f231a3-3f04-4458-8716-734675e10fba)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by entering interactive mode with self.interactive_embed() using OpenGL, then exercise add_updater and always_redraw with an imported Dot and custom variables. Trace how names from the main program are retrieved in that path; done means imported Manim objects, custom variables, and other main-program objects are usable inside add_updater.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.