mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add Mobject.deserialize
This commit is contained in:
parent
b9751e9d06
commit
4d8698a0e8
1 changed files with 4 additions and 0 deletions
|
@ -470,6 +470,10 @@ class Mobject(object):
|
|||
self.parents = pre
|
||||
return result
|
||||
|
||||
def deserialize(self, data: bytes):
|
||||
self.become(pickle.loads(data))
|
||||
return self
|
||||
|
||||
def copy(self):
|
||||
try:
|
||||
serial = self.serialize()
|
||||
|
|
Loading…
Add table
Reference in a new issue