|
@@ -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 {
|