From 196ad66f41fe77fff13b15b05095dc7661251a5d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 18 十月 2024 13:27:28 +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