mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Made add-a-point hack a slightly better hack
This commit is contained in:
parent
7dbd871032
commit
59910f9802
1 changed files with 4 additions and 1 deletions
|
@ -451,7 +451,10 @@ class Mobject(object):
|
|||
smaller = mobject2
|
||||
target_size = count1
|
||||
if len(smaller.points) == 0:
|
||||
smaller.add_points([np.zeros(smaller.DIM)])
|
||||
smaller.add_points(
|
||||
[np.zeros(smaller.DIM)],
|
||||
color = BLACK
|
||||
)
|
||||
smaller.apply_over_attr_arrays(
|
||||
lambda a : streth_array_to_length(a, target_size)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue