From 22bb8efb4d0b5c94f19aed3544df3e0b760271fd Mon Sep 17 00:00:00 2001 From: ijlal99 Date: Mon, 2 Dec 2024 20:05:22 +0500 Subject: [PATCH] StoreyViewsPlugin::Remove unit conversion to meters --- src/plugins/StoreyViewsPlugin/StoreyViewsPlugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/StoreyViewsPlugin/StoreyViewsPlugin.js b/src/plugins/StoreyViewsPlugin/StoreyViewsPlugin.js index d59ad610e..835d5eca4 100644 --- a/src/plugins/StoreyViewsPlugin/StoreyViewsPlugin.js +++ b/src/plugins/StoreyViewsPlugin/StoreyViewsPlugin.js @@ -334,12 +334,12 @@ class StoreyViewsPlugin extends Plugin { if(isNaN(elevationCur)) return; const bb = storeysList[i].storeyAABB; - bb[bbIndex] = Math.max(bb[1], parseFloat(elevationCur) / 1000); + bb[bbIndex] = Math.max(bb[1], parseFloat(elevationCur)); if (i > 0) { const storeyMetaObjectNext = metaScene.metaObjects[storeysList[i - 1].storeyId]; const elevationNext = storeyMetaObjectNext.attributes.elevation; - bb[4] = Math.min(bb[bbIndex + 3], parseFloat(elevationNext) / 1000); + bb[4] = Math.min(bb[bbIndex + 3], parseFloat(elevationNext)); } this.storeys[storeysList[i].storeyId].storeyAABB = bb;