mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix strange curve check.
Something went wrong in prior refactoring here. Also, no need to check curve beginnings and ends again, just handles.
This commit is contained in:
parent
98d7703b5c
commit
b96036fb03
1 changed files with 2 additions and 6 deletions
|
@ -1661,14 +1661,10 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
|||
// We could do another check for curve identity here if we find a
|
||||
// better criteria.
|
||||
if (straight ||
|
||||
abs(c2[0] - c1[0]) < epsilon &&
|
||||
abs(c2[1] - c1[1]) < epsilon &&
|
||||
abs(c2[1] - c1[1]) < epsilon &&
|
||||
abs(c2[3] - c1[3]) < epsilon &&
|
||||
abs(c2[2] - c1[2]) < epsilon &&
|
||||
abs(c2[5] - c1[5]) < epsilon &&
|
||||
abs(c2[3] - c1[3]) < epsilon &&
|
||||
abs(c2[7] - c1[7]) < epsilon) {
|
||||
abs(c2[4] - c1[4]) < epsilon &&
|
||||
abs(c2[5] - c1[5]) < epsilon) {
|
||||
// Overlapping parts are identical
|
||||
var t11 = pairs[0][0],
|
||||
t12 = pairs[0][1],
|
||||
|
|
Loading…
Reference in a new issue