mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Initial hanoi animations
This commit is contained in:
@ -13,9 +13,7 @@ from helpers import *
|
||||
class Mobject(object):
|
||||
"""
|
||||
Mathematical Object
|
||||
|
||||
"""
|
||||
#Number of numbers used to describe a point (3 for pos, 3 for normal vector)
|
||||
CONFIG = {
|
||||
"color" : WHITE,
|
||||
"stroke_width" : DEFAULT_POINT_THICKNESS,
|
||||
@ -371,6 +369,9 @@ class Mobject(object):
|
||||
##
|
||||
|
||||
def save_state(self):
|
||||
if hasattr(self, "saved_state"):
|
||||
#Prevent exponential growth of data
|
||||
self.saved_state = None
|
||||
self.saved_state = self.copy()
|
||||
return self
|
||||
|
||||
|
Reference in New Issue
Block a user