#
luxiaotao1123
2021-12-25 ffd39ddf6fc9b0280af4f2f5810212cf23072c6c
#
2个文件已修改
16 ■■■■ 已修改文件
static/js/data/ConveyData.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/StoreConvey.js 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/data/ConveyData.js
@@ -10,7 +10,6 @@
            },
            rotateY: 0,
            traverse: {
                color: 0xAAAAAA,
                scale: {
                    x: 1,
                    y: 1,
static/js/object/StoreConvey.js
@@ -41,6 +41,11 @@
                    child.material = new THREE.MeshLambertMaterial({
                        color: 0xAAAAAA
                    });
                    if (child.name === "Box034" || child.name === "Box035") {
                        child.material = new THREE.MeshLambertMaterial({
                            color: 0x000000
                        });
                    }
                }
            });
            chainList.map(item => {
@@ -84,10 +89,14 @@
            let traverse = info.traverse;
            clone.traverse (function (child) {
                if (child instanceof THREE.Mesh) {
                    // 拉伸
                    child.scale.set(traverse.scale.x, traverse.scale.y, traverse.scale.z);
                    child.material = new THREE.MeshLambertMaterial({
                        color: traverse.color
                    });
                    // 颜色
                    if (traverse.color !== undefined) {
                        child.material = new THREE.MeshLambertMaterial({
                            color: traverse.color
                        });
                    }
                }
            });
        }