sebavan 8 years ago
parent
commit
fcf4544807
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Layer/babylon.highlightlayer.ts

+ 1 - 1
src/Layer/babylon.highlightlayer.ts

@@ -616,7 +616,7 @@
                     color: color,
                     color: color,
                     // Lambda required for capture due to Observable this context
                     // Lambda required for capture due to Observable this context
                     observerHighlight: mesh.onBeforeRenderObservable.add((mesh: Mesh) => {
                     observerHighlight: mesh.onBeforeRenderObservable.add((mesh: Mesh) => {
-                        if (this.excludedMeshes.indexOf(mesh) > 0) {
+                        if (this.excludedMeshes.indexOf(mesh) > -1) {
                             this.defaultStencilReference(mesh);
                             this.defaultStencilReference(mesh);
                         }
                         }
                         else {
                         else {