Pārlūkot izejas kodu

removeMesh bug. _meshes not delete.

KK 7 gadi atpakaļ
vecāks
revīzija
d19dc0acd2
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/Layer/babylon.highlightlayer.ts

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

@@ -826,7 +826,7 @@
                 }
             }
 
-            this._meshes[mesh.uniqueId] = null;
+            delete this._meshes[mesh.uniqueId];
 
             this._shouldRender = false;
             for (var meshHighlightToCheck in this._meshes) {
@@ -951,4 +951,4 @@
             this.onSizeChangedObservable.clear();
         }
     }
-} 
+}