Skip to content

Commit

Permalink
more bugfixes to JSARToolKit process event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kig committed Oct 26, 2015
1 parent 279064e commit fe9f5ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/artoolkit.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
var markerType = artoolkit.UNKNOWN_MARKER;
var visible = this.trackPatternMarkerId(-1);

if (markerInfo.idPatt > -1 && markerInfo.idMatrix == -1) {
if (markerInfo.idPatt > -1 && markerInfo.idMatrix === -1) {
visible = this.trackPatternMarkerId(markerInfo.idPatt);
markerType = artoolkit.PATTERN_MARKER;

Expand All @@ -145,7 +145,7 @@

}

if (visible && visible.inPrevious) {
if (markerType !== artoolkit.UNKNOWN_MARKER && visible.inPrevious) {
this.getTransMatSquareCont(i, visible.markerWidth, visible.matrix, visible.matrix);
} else {
this.getTransMatSquare(i, visible.markerWidth, visible.matrix);
Expand Down

0 comments on commit fe9f5ab

Please sign in to comment.