提交 096b590e 编写于 作者: T Takahiro

Enable direct accessor access from sampler (for 1.1)

上级 cbf29b7e
......@@ -1397,12 +1397,12 @@ THREE.GLTFLoader = ( function () {
var channel = animation.channels[ channelId ];
var sampler = animation.samplers[ channel.sampler ];
if ( sampler && animation.parameters ) {
if ( sampler ) {
var target = channel.target;
var name = target.id;
var input = animation.parameters[ sampler.input ];
var output = animation.parameters[ sampler.output ];
var input = animation.parameters !== undefined ? animation.parameters[ sampler.input ] : sampler.input;
var output = animation.parameters !== undefined ? animation.parameters[ sampler.output ] : sampler.output;
var inputAccessor = dependencies.accessors[ input ];
var outputAccessor = dependencies.accessors[ output ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册