ソースを参照

Make nullptr test more explicit.

Kim Kulling 4 年 前
コミット
d710d0700f
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];
 
-        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;
         }