From df6668bdfc10fa1e3dae3824e2127a8807438ce7 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 30 三月 2024 16:44:17 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
index 26f3309..ece7876 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -186,6 +186,15 @@
         fn(this.addObject);
     }
 
+    setNewSelectedMesh = (objName) => {
+        for(const mesh of this.objects) {
+            if (mesh.name === objName) {
+                this.outlinePass.selectedObjects = [mesh];
+                break;
+            }
+        }
+    }
+
     destroy = () => {
         cancelAnimationFrame(this.animationFrame);
         window.removeEventListener('resize', this.resizeHandler);

--
Gitblit v1.9.1