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:
mirefek
2018-01-28 15:07:29 +01:00
parent 8cf2214d15
commit b709127339

View File

@ -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
)