提交 1d4614cf 编写于 作者: N Nikolay Safin

GLTFLoader: check if material.extra is defined before assign it

上级 65dde621
......@@ -1669,7 +1669,7 @@ THREE.GLTFLoader = ( function () {
// https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#materialnormaltexture
_material.normalScale.x = -1;
_material.userData = material.extras;
if ( material.extras ) _material.userData = material.extras;
return _material;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册