mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
User correct tolerance in CurveLocation sorting.
This commit is contained in:
parent
a099377ac6
commit
86fd33c7d5
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
|
|||
|
||||
statics: {
|
||||
sort: function(locations) {
|
||||
var tolerance = 1 - /*#=*/Numerical.TOLERANCE;
|
||||
var tolerance = /*#=*/Numerical.TOLERANCE;
|
||||
locations.sort(function compare(l1, l2) {
|
||||
var curve1 = l1._curve,
|
||||
curve2 = l2._curve,
|
||||
|
|
Loading…
Reference in a new issue