Better alignment of sub_mbojects

This commit is contained in:
Grant Sanderson
2016-04-14 19:30:47 -07:00
parent a9f620e250
commit bd3783586a
8 changed files with 92 additions and 64 deletions

View File

@ -15,9 +15,9 @@ class Transform(Animation):
"path_func" : straight_path
}
def __init__(self, mobject, ending_mobject, **kwargs):
mobject = instantiate(mobject)
mobject =mobject
#Copy ending_mobject so as to not mess with caller
ending_mobject = instantiate(ending_mobject).copy()
ending_mobject = ending_mobject.copy()
digest_config(self, kwargs, locals())
count1, count2 = mobject.get_num_points(), ending_mobject.get_num_points()
if count2 == 0: