mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Bugfix: VMobject.pointwise_become_partial did not worked properly when 0<a, b<1 and
they are on the same curve.
This commit is contained in:
@ -413,6 +413,9 @@ class VMobject(Mobject):
|
||||
b_residue = (num_cubics*b)%1
|
||||
if b == 1:
|
||||
b_residue = 1
|
||||
elif lower_index == upper_index:
|
||||
b_residue = (b_residue - a_residue)/(1-a_residue)
|
||||
|
||||
points[:4] = partial_bezier_points(
|
||||
points[:4], a_residue, 1
|
||||
)
|
||||
|
Reference in New Issue
Block a user