From 0765caa69f6eea96736a0d20d2f6ce9657ef026f Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期一, 01 四月 2024 15:15:38 +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