Make nullptr test more explicit.

pull/4055/head
Kim Kulling 2021-09-02 10:10:42 +02:00 committed by GitHub
parent 4c86772091
commit d710d0700f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1338,12 +1338,12 @@ std::unordered_map<unsigned int, AnimationSamplers> GatherSamplers(Animation &an
auto& animsampler = anim.samplers[channel.sampler];
if (!animsampler.input) {
if (nullptr == animsampler.input) {
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler input. Skipping.");
continue;
}
if (!animsampler.output) {
if (nullptr == animsampler.output) {
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler output. Skipping.");
continue;
}