提交 0a2c56f3 编写于 作者: T Takahiro

GLTFExporter: Skip single morph animation.

上级 7a879000
......@@ -1378,6 +1378,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" because ' +
'glTF can not handle single morph animation. ' +
'Try to merge .morphTargetInfluences elements instead.', track.name );
continue;
}
outputItemSize /= trackNode.morphTargetInfluences.length;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册