mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 04:23:16 +08:00
Merge branch '3b1b:master' into master
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import copy
|
||||
import sys
|
||||
import random
|
||||
import itertools as it
|
||||
@ -493,7 +494,10 @@ class Mobject(object):
|
||||
|
||||
def copy(self):
|
||||
self.parents = []
|
||||
return pickle.loads(pickle.dumps(self))
|
||||
try:
|
||||
return pickle.loads(pickle.dumps(self))
|
||||
except AttributeError:
|
||||
return copy.deepcopy(self)
|
||||
|
||||
def deepcopy(self):
|
||||
# This used to be different from copy, so is now just here for backward compatibility
|
||||
|
Reference in New Issue
Block a user