mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 00:45:54 +08:00
Change AnimationSampler::interpolation to a non-required field. The spec states to default to LINEAR when not present.
This commit is contained in:
parent
d2fb7dc2af
commit
6bdffedcbe
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user