mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00: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:
parent
8cf2214d15
commit
b709127339
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue