From 56d825281aa366194ac3ad534329e0497c9aa6f0 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sat, 30 Oct 2021 10:30:37 +0200 Subject: [PATCH] Fix mesh isolation. --- website/o3dv/js/navigatoritems.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/website/o3dv/js/navigatoritems.js b/website/o3dv/js/navigatoritems.js index fbfc278..02d85d8 100644 --- a/website/o3dv/js/navigatoritems.js +++ b/website/o3dv/js/navigatoritems.js @@ -138,11 +138,6 @@ OV.NavigatorItems = class this.meshInstanceIdToItem = new Map (); } - MaterialItemCount () - { - return Object.keys (this.materialIndexToItem).length; - } - GetMaterialItem (materialIndex) { return this.materialIndexToItem.get (materialIndex); @@ -155,7 +150,7 @@ OV.NavigatorItems = class MeshItemCount () { - return Object.keys (this.meshInstanceIdToItem).length; + return this.meshInstanceIdToItem.size; } GetNodeItem (nodeId) @@ -180,7 +175,7 @@ OV.NavigatorItems = class EnumerateMeshItems (processor) { - for (const meshItem of Object.values (this.meshInstanceIdToItem)) { + for (const meshItem of this.meshInstanceIdToItem.values ()) { if (!processor (meshItem)) { break; }