diff --git a/code/AssetLib/glTF2/glTF2Importer.cpp b/code/AssetLib/glTF2/glTF2Importer.cpp index aa48b7330..ada7aa046 100644 --- a/code/AssetLib/glTF2/glTF2Importer.cpp +++ b/code/AssetLib/glTF2/glTF2Importer.cpp @@ -1338,12 +1338,12 @@ std::unordered_map GatherSamplers(Animation &an auto& animsampler = anim.samplers[channel.sampler]; - if (animsampler.input) { + if (!animsampler.input) { ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler input. Skipping."); continue; } - if (animsampler.output) { + if (!animsampler.output) { ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler output. Skipping."); continue; }