提交 bade2077 编写于 作者: T Takahiro

Fix GLTFLoader joint search bug

上级 349d98db
......@@ -1463,10 +1463,26 @@ THREE.GLTFLoader = ( function () {
var bones = [];
var boneInverses = [];
var keys = Object.keys( __nodes );
for ( var i = 0, l = skinEntry.jointNames.length; i < l; i ++ ) {
var jointId = skinEntry.jointNames[ i ];
var jointNode = __nodes[ jointId ];
var jointNode;
for ( var j = 0, jl = keys.length; j < jl; j ++ ) {
var node = __nodes[ keys[ j ] ];
if ( node.jointName === jointId ) {
jointNode = node;
break;
}
}
if ( jointNode ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册