Skip to content

Fix: Issue with OpenGL rendering for Transform of SVGMobjects #4182 #4374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion manim/mobject/opengl/opengl_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@ def align_data(self, mobject: OpenGLMobject) -> Self:
# can handle that case differently if they choose
mob1.align_points(mob2)
for key in mob1.data.keys() & mob2.data.keys():
if key == "points":
if key == "points" or key == "stroke_width":
continue
arr1 = mob1.data[key]
arr2 = mob2.data[key]
Expand Down Expand Up @@ -2582,6 +2582,8 @@ def construct(self):
for key in self.data:
if key in self.locked_data_keys:
continue
if isinstance(self.data[key], int):
continue
if len(self.data[key]) == 0:
continue
if key not in mobject1.data or key not in mobject2.data:
Expand Down
Loading