Skip to content

Fix default angled camera orientation in ThreeDScene#4704

Open
siddhu-pikachu wants to merge 1 commit intoManimCommunity:mainfrom
siddhu-pikachu:codex/manim-4472-fix
Open

Fix default angled camera orientation in ThreeDScene#4704
siddhu-pikachu wants to merge 1 commit intoManimCommunity:mainfrom
siddhu-pikachu:codex/manim-4472-fix

Conversation

@siddhu-pikachu
Copy link
Copy Markdown

Overview: What does this pull request change?

Fixes ThreeDScene.set_to_default_angled_camera_orientation() so it uses the stored default angled camera orientation kwargs, and adds a regression test for the method.

Motivation and Explanation: Why and how do your changes improve the library?

ThreeDScene.__init__ stores the defaults in self.default_angled_camera_orientation_kwargs, but set_to_default_angled_camera_orientation() was reading self.default_camera_orientation_kwargs, which does not exist.

This caused the method to raise an AttributeError instead of applying the default angled camera orientation. This PR switches the method to the correct attribute and adds a regression test covering both the default theta and a phi override.

Links to added or changed documentation pages

N/A

Further Information and Comments

Issue: #4472

Tested with:

  • .venv/bin/pytest tests/module/scene/test_threed_scene.py -q -n0

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.

1 participant