Make nullptr test more explicit.
parent
4c86772091
commit
d710d0700f
|
@ -1338,12 +1338,12 @@ std::unordered_map<unsigned int, AnimationSamplers> GatherSamplers(Animation &an
|
||||||
|
|
||||||
auto& animsampler = anim.samplers[channel.sampler];
|
auto& animsampler = anim.samplers[channel.sampler];
|
||||||
|
|
||||||
if (!animsampler.input) {
|
if (nullptr == animsampler.input) {
|
||||||
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler input. Skipping.");
|
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler input. Skipping.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!animsampler.output) {
|
if (nullptr == animsampler.output) {
|
||||||
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler output. Skipping.");
|
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler output. Skipping.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue