mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Do not access curve objects for geometry since they might be subdivided.
Partial fix for #765
This commit is contained in:
parent
b96036fb03
commit
3f53aa78ce
1 changed files with 4 additions and 4 deletions
|
@ -1695,10 +1695,10 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
|||
return locations;
|
||||
var straight1 = Curve.isStraight(v1),
|
||||
straight2 = Curve.isStraight(v2),
|
||||
c1p1 = c1.getPoint1(),
|
||||
c1p2 = c1.getPoint2(),
|
||||
c2p1 = c2.getPoint1(),
|
||||
c2p2 = c2.getPoint2(),
|
||||
c1p1 = new Point(v1[0], v1[1]),
|
||||
c1p2 = new Point(v1[6], v1[7]),
|
||||
c2p1 = new Point(v2[0], v2[1]),
|
||||
c2p2 = new Point(v2[6], v2[7]),
|
||||
tolerance = /*#=*/Numerical.TOLERANCE;
|
||||
// Handle a special case where if both curves start or end at the
|
||||
// same point, the same end-point case will be handled after we
|
||||
|
|
Loading…
Reference in a new issue