Skip to content

Commit 11c3724

Browse files
author
Guille Paz
committed
Build v1.1.4
1 parent 412b7f0 commit 11c3724

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

dist/gesturekit.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* gesturekit.js v1.1.3
2+
* gesturekit.js v1.1.4
33
* http://gesturekit.com/
44
*
55
* Copyright (c) 2014, RoamTouch
@@ -729,7 +729,7 @@ gesturekit = new Gesturekit();
729729
/**
730730
* gesturekit version.
731731
*/
732-
gesturekit.version = '1.1.3';
732+
gesturekit.version = '1.1.4';
733733

734734
// Expose gesturekit
735735
module.exports = gesturekit;
@@ -1036,7 +1036,8 @@ function PDollarRecognizer() {
10361036
points = scale(points);
10371037
points = translateTo(points, Origin);
10381038

1039-
var d,
1039+
var that = this,
1040+
d,
10401041
result = {
10411042
'name': NO_MATCH_NAME,
10421043
'score': NO_MATCH_SCORE
@@ -1053,12 +1054,18 @@ function PDollarRecognizer() {
10531054

10541055
d = greedyCloudMatch(points, pointCloud);
10551056
if (d < b1) {
1056-
b2 = b1;
1057-
u2 = u1;
1057+
1058+
if (u1 === -1 || pointCloud.name != that.pointClouds[u1].name) {
1059+
b2 = b1;
1060+
u2 = u1;
1061+
}
1062+
1063+
// b2 = b1;
1064+
// u2 = u1;
10581065

10591066
b1 = d; // best (least) distance
10601067
u1 = i; // point-cloud
1061-
} else if (d < b2) {
1068+
} else if (d < b2 && pointCloud.name != that.pointClouds[u1].name) {
10621069
b2 = d;
10631070
u2 = i;
10641071
}

dist/gesturekit.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)