mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 09:27:45 +00:00
Temporary fix for PMobject array resizing
This commit is contained in:
parent
d45ea28dc1
commit
b543cc0e32
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ class PMobject(Mobject):
|
||||||
def resize_points(self, size, resize_func=resize_array):
|
def resize_points(self, size, resize_func=resize_array):
|
||||||
# TODO
|
# TODO
|
||||||
for key in self.data:
|
for key in self.data:
|
||||||
|
if key == "bounding_box":
|
||||||
|
continue
|
||||||
if len(self.data[key]) != size:
|
if len(self.data[key]) != size:
|
||||||
self.data[key] = resize_array(self.data[key], size)
|
self.data[key] = resize_array(self.data[key], size)
|
||||||
return self
|
return self
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue