From 5e63b5743d8c6e75f9ce5ddef43318c51f58f6f0 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 3 Feb 2019 12:08:37 -0800 Subject: [PATCH] Update target mobject before Transform --- manimlib/animation/transform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.py index 47ec01f5..1dcfeec2 100644 --- a/manimlib/animation/transform.py +++ b/manimlib/animation/transform.py @@ -29,8 +29,10 @@ class Transform(Animation): # Copy target_mobject so as to not mess with caller self.original_target_mobject = target_mobject target_mobject = target_mobject.copy() - mobject.align_data(target_mobject) + target_mobject.update() self.target_mobject = target_mobject + + mobject.align_data(target_mobject) digest_config(self, kwargs) self.init_path_func()