Преглед на файлове

removeMesh bug. _meshes not delete.

KK преди 7 години
родител
ревизия
d19dc0acd2
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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();
         }
     }
-} 
+}