Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Tiny cosmetic changes to transform

Grant Sanderson3175e7a7f382
diff --git a/animation/transform.py b/animation/transform.py
index 799b776f0..30d7c7d2e 100644
--- a/animation/transform.py
+++ b/animation/transform.py
@@ -22,8 +22,9 @@ class Transform(Animation):
#Copy target_mobject so as to not mess with caller
self.original_target_mobject = target_mobject
target_mobject = target_mobject.copy()
- digest_config(self, kwargs, locals())
mobject.align_data(target_mobject)
+ self.target_mobject = target_mobject
+ digest_config(self, kwargs)
self.init_path_func()
Animation.__init__(self, mobject, **kwargs)
@@ -40,7 +41,7 @@ class Transform(Animation):
def init_path_func(self):
if self.path_func is not None:
return
- if self.path_arc == 0:
+ elif self.path_arc == 0:
self.path_func = straight_path
else:
self.path_func = path_along_arc(