Revert last change (gltf2::Ref type is not a pointer and has a bool() operator)
parent
d710d0700f
commit
72ea80b41f
|
@ -1338,12 +1338,12 @@ std::unordered_map<unsigned int, AnimationSamplers> GatherSamplers(Animation &an
|
|||
|
||||
auto& animsampler = anim.samplers[channel.sampler];
|
||||
|
||||
if (nullptr == animsampler.input) {
|
||||
if (animsampler.input) {
|
||||
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler input. Skipping.");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (nullptr == animsampler.output) {
|
||||
if (animsampler.output) {
|
||||
ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler output. Skipping.");
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue