From 6bdffedcbeb013ecad8cfe1a5ec2390c2467b86a Mon Sep 17 00:00:00 2001 From: Evan Birenbaum Date: Thu, 14 Feb 2019 13:30:57 -0800 Subject: [PATCH] Change AnimationSampler::interpolation to a non-required field. The spec states to default to LINEAR when not present. --- tiny_gltf.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 7e7edb4..ee596e9 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -3263,13 +3263,8 @@ static bool ParseAnimation(Animation *animation, std::string *err, } return false; } - if (!ParseStringProperty(&sampler.interpolation, err, s, - "interpolation", true)) { - if (err) { - (*err) += "`interpolation` field is missing in animation.sampler\n"; - } - return false; - } + ParseStringProperty(&sampler.interpolation, err, s, "interpolation", + false); if (!ParseNumberProperty(&outputIndex, err, s, "output", true)) { if (err) { (*err) += "`output` field is missing in animation.sampler\n";