From 1e465fcab874dd5bf60fdff4151a3742b5a755b0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 17 十月 2024 14:21:12 +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