瀏覽代碼

Fixed typo

Max Vollmer (Microsoft Havok) 4 年之前
父節點
當前提交
bf8e36ae28
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      code/AssetLib/glTF2/glTF2Importer.cpp

+ 2 - 2
code/AssetLib/glTF2/glTF2Importer.cpp

@@ -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 (!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 (!animsampler.output) {
             ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler output. Skipping.");
             ASSIMP_LOG_WARN("Animation ", anim.name, ": Missing sampler output. Skipping.");
             continue;
             continue;
         }
         }