Skip to content

Commit b322bf2

Browse files
committed
Add opengl check
1 parent a315d7c commit b322bf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manim/mobject/svg/svg_mobject.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,10 @@ def handle_transforms(self, element, mobject):
510510
matrix[:, 1] *= -1
511511

512512
for mob in mobject.family_members_with_points():
513-
mob.points = np.dot(mob.points, matrix)
513+
if config["renderer"] == "opengl":
514+
mob.data["points"] = np.dot(mob.data["points"], matrix)
515+
else:
516+
mob.points = np.dot(mob.points, matrix)
514517
mobject.shift(x * RIGHT + y * UP)
515518

516519
elif op_name == "scale":

0 commit comments

Comments
 (0)