From 047d6181a5f51711521c5e38f081d6e8760e22d6 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 07 四月 2024 10:45:34 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 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 a1fc0e9..4ded7ab 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -191,14 +191,24 @@
         // fn(this.addObject);
         const loader = new FBXLoader();
         const promise = new Promise((resolve) => {
-            loader.load('model/001-5.fbx', (mesh) => {
+            loader.load('model/04.fbx', (mesh) => {
                 mesh.position.set(0, 10, 0);
                 mesh.scale.set(5, 5, 5);
                 mesh.name = '1-1-1';
                 // mesh.rotation.x = Utils.rotationParseNum(270);
                 mesh.traverse(function (child) {
                     if (child.isMesh) {
-                        child.name = '1-1-1';
+
+                        if (child.name === '涓嶈鍒�') {
+                            // child.visible = false;
+                            console.log(material);
+                        }
+                        if (child.name === '璐ф灦') {
+                            child.material.color.set(0x4680BF);
+                        }
+                        // if (child.name === '鎵樼洏') {
+                        //     child.material.color.set(0xBEBEBE);
+                        // }
                         child.castShadow = true;
                         child.receiveShadow = true;
                     }

--
Gitblit v1.9.1