glTF2: Fix animation export
parent
bb55246c18
commit
acf8c54e55
|
@ -113,13 +113,12 @@ namespace glTF2 {
|
|||
Value valChannel;
|
||||
valChannel.SetObject();
|
||||
{
|
||||
Animation::AnimSampler& s = a.Samplers[c.sampler];
|
||||
valChannel.AddMember("sampler", s.id, w.mAl);
|
||||
valChannel.AddMember("sampler", c.sampler, w.mAl);
|
||||
|
||||
Value valTarget;
|
||||
valTarget.SetObject();
|
||||
{
|
||||
valTarget.AddMember("id", StringRef(c.target.node->id), w.mAl);
|
||||
valTarget.AddMember("node", c.target.node->index, w.mAl);
|
||||
valTarget.AddMember("path", c.target.path, w.mAl);
|
||||
}
|
||||
valChannel.AddMember("target", valTarget, w.mAl);
|
||||
|
|
Loading…
Reference in New Issue