#
luxiaotao1123
2024-04-03 f2c1551fe516baa81d6b4a2c6bb5efc384e1df22
#
1个文件已修改
9 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -174,8 +174,12 @@
            if (intersects.length === 0) {
                return;
            }
            this.outlinePass.selectedObjects = [intersects[0].object];
            let objName = intersects[0].object.name;
            this.objects.forEach(obj => {
                if (obj.name === objName) {
                    this.outlinePass.selectedObjects = [obj];
                }
            })
            if (objName && this.handleClick) {
                this.handleClick(objName, x, y);
            }
@@ -187,12 +191,13 @@
        // fn(this.addObject);
        const loader = new FBXLoader();
        loader.load('model/001-5.fbx', (mesh) => {
            console.log(mesh);
            mesh.position.set(0, 10, 0);
            mesh.scale.set(5, 5, 5);
            mesh.name = '0100101';
            // mesh.rotation.x = Utils.rotationParseNum(270);
            mesh.traverse(function (child) {
                if (child.isMesh) {
                    child.name = '0100101';
                    child.castShadow = true;
                    child.receiveShadow = true;
                }