mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Use copy in set_data
This commit is contained in:
parent
8ef71bb930
commit
164c9ba754
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ class Mobject(object):
|
|||
@affects_data
|
||||
def set_data(self, data: np.ndarray):
|
||||
assert(data.dtype == self.data.dtype)
|
||||
self.data = data
|
||||
self.data = data.copy()
|
||||
return self
|
||||
|
||||
@affects_data
|
||||
|
|
Loading…
Add table
Reference in a new issue