提交 debe3210 编写于 作者: T Takahiro

GLTFLoader: Support morph targetNames

上级 4966686e
......@@ -1205,6 +1205,17 @@ THREE.GLTFLoader = ( function () {
}
// .extras has user defined data so just in case cheking if .extras.targetNames is array.
if ( meshDef.extras && Array.isArray( meshDef.extras.targetNames ) ) {
for ( var i = 0, il = meshDef.extras.targetNames.length; i < il; i ++ ) {
mesh.morphTargetDictionary[ meshDef.extras.targetNames[ i ] ] = i;
}
}
}
function isPrimitiveEqual( a, b ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册