mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 14:06:14 +08:00
Merge pull request #142 from ebirenbaum/animation-sampler-interpolation
Change AnimationSampler::interpolation to a non-required field.
This commit is contained in:
commit
7ece5c8275
@ -3263,13 +3263,8 @@ static bool ParseAnimation(Animation *animation, std::string *err,
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!ParseStringProperty(&sampler.interpolation, err, s,
|
ParseStringProperty(&sampler.interpolation, err, s, "interpolation",
|
||||||
"interpolation", true)) {
|
false);
|
||||||
if (err) {
|
|
||||||
(*err) += "`interpolation` field is missing in animation.sampler\n";
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!ParseNumberProperty(&outputIndex, err, s, "output", true)) {
|
if (!ParseNumberProperty(&outputIndex, err, s, "output", true)) {
|
||||||
if (err) {
|
if (err) {
|
||||||
(*err) += "`output` field is missing in animation.sampler\n";
|
(*err) += "`output` field is missing in animation.sampler\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user