未验证 提交 0b340e7e 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14218 from takahirox/GLTFExporterSkipSingleMorphAnimation

GLTFExporter: Skip single morph animation.
......@@ -1397,6 +1397,16 @@ THREE.GLTFExporter.prototype = {
if ( trackProperty === PATH_PROPERTIES.morphTargetInfluences ) {
if ( trackNode.morphTargetInfluences.length !== 1 &&
trackBinding.propertyIndex !== undefined ) {
console.warn( 'THREE.GLTFExporter: Skipping animation track "%s". ' +
'Morph target keyframe tracks must target all available morph targets ' +
'for the given mesh.', track.name );
continue;
}
outputItemSize /= trackNode.morphTargetInfluences.length;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册