From 1bf52275fccebc656fa6deabe9537d2f9c698ecf Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 07 四月 2024 10:45:35 +0800
Subject: [PATCH] Merge branch 'Four-Way-Rack' of http://47.97.1.152:5880/r/zy-asrs-master into Four-Way-Rack
---
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