Browse Source

removeMesh bug. _meshes not delete.

KK 7 năm trước cách đây
mục cha
commit
d19dc0acd2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();
         }
     }
-} 
+}