mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Move where the Mobject.animate method lives
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user