Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Safer default for Mobject.apply_matrix

Grant Sandersondd2ee72900c3
diff --git a/mobject/mobject.py b/mobject/mobject.py
index 6b0c3f032..35dcf573a 100644
--- a/mobject/mobject.py
+++ b/mobject/mobject.py
@@ -254,7 +254,7 @@ class Mobject(Container):
def apply_matrix(self, matrix, **kwargs):
# Default to applying matrix about the origin, not mobjects center
- if len(kwargs) == 0:
+ if ("about_point" not in kwargs) and ("about_edge" not in kwargs):
kwargs["about_point"] = ORIGIN
full_matrix = np.identity(self.dim)
matrix = np.array(matrix)