From 41da932b9629d7f1426e2030412df1a41f65ff6e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 21 十月 2024 11:05:14 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/insight/shelf/ShelfThree.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zy-acs-flow/src/map/insight/shelf/ShelfThree.js b/zy-acs-flow/src/map/insight/shelf/ShelfThree.js index 1bb5f34..e239382 100644 --- a/zy-acs-flow/src/map/insight/shelf/ShelfThree.js +++ b/zy-acs-flow/src/map/insight/shelf/ShelfThree.js @@ -57,8 +57,8 @@ } addObject = (object) => { - this.scene.add(object); - this.objects.push(object); + this.scene?.add(object); + this.objects?.push(object); } initScene = () => { @@ -207,7 +207,7 @@ height * cameraPosScale, height * cameraPosScale ); - this.controls.target = new THREE.Vector3(0, maxHeight * 0.53, 0); + this.controls.target = new THREE.Vector3(0, maxHeight * 0.5, 0); } destroy = () => { -- Gitblit v1.9.1