mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Made add-a-point hack a slightly better hack
This commit is contained in:
@ -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)
|
||||
)
|
||||
|
Reference in New Issue
Block a user