From 17b2efeb71ce29a2fdc8cdcc767eef8166921851 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 10 Feb 2021 13:49:09 -0800 Subject: [PATCH] Move where the Mobject.animate method lives --- manimlib/mobject/mobject.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index 12c8b041..37d398e2 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -80,11 +80,6 @@ class Mobject(object): if self.depth_test: self.apply_depth_test() - @property - def animate(self): - # Borrowed from https://github.com/ManimCommunity/manim/ - return _AnimationBuilder(self) - def __str__(self): return self.__class__.__name__ @@ -119,6 +114,11 @@ class Mobject(object): self.uniforms[key] = uniforms[key] # Copy? return self + @property + def animate(self): + # Borrowed from https://github.com/ManimCommunity/manim/ + return _AnimationBuilder(self) + # Only these methods should directly affect points def resize_points(self, new_length, resize_func=resize_array):