提交 05d67cc5 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #12007 from proteamer/dev

GLTFLoader: check if material.extra is defined before assign it
......@@ -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.
先完成此消息的编辑!
想要评论请 注册