mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
parent
3a3d46692b
commit
00d2002b6f
1 changed files with 2 additions and 2 deletions
|
@ -913,8 +913,8 @@ Path.inject(/** @lends Path# */{
|
||||||
y1 = v[3],
|
y1 = v[3],
|
||||||
y2 = v[5],
|
y2 = v[5],
|
||||||
y3 = v[7];
|
y3 = v[7];
|
||||||
if (Curve.isStraight(v) ||
|
if (Curve.isStraight(v)
|
||||||
y0 >= y1 === y1 >= y2 && y1 >= y2 === y2 >= y3) {
|
|| y0 >= y1 === y1 >= y2 && y1 >= y2 === y2 >= y3) {
|
||||||
// Straight curves and curves with end and control points sorted
|
// Straight curves and curves with end and control points sorted
|
||||||
// in y direction are guaranteed to be monotone in y direction.
|
// in y direction are guaranteed to be monotone in y direction.
|
||||||
insertCurve(v);
|
insertCurve(v);
|
||||||
|
|
Loading…
Reference in a new issue