提交 77c5b1ff 编写于 作者: T Takahiro

Use default material if materials is not defined in JSON (for 1.1)

上级 654e95dc
......@@ -1238,7 +1238,7 @@ THREE.GLTFLoader = ( function () {
}
var material = dependencies.materials[ primitive.material ];
var material = dependencies.materials !== undefined ? dependencies.materials[ primitive.material ] : createDefaultMaterial();
var meshNode = new THREE.Mesh( geometry, material );
meshNode.castShadow = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册