From acf8c54e559f936740c5ce38d278679b8ecb5dde Mon Sep 17 00:00:00 2001 From: jamesgk Date: Wed, 26 Jul 2017 14:20:53 -0700 Subject: [PATCH] glTF2: Fix animation export --- code/glTF2AssetWriter.inl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/glTF2AssetWriter.inl b/code/glTF2AssetWriter.inl index 2c3f2fffd..03e73eb27 100644 --- a/code/glTF2AssetWriter.inl +++ b/code/glTF2AssetWriter.inl @@ -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);