From 72ea80b41f7364ffacd5878ce4c357aaef0dd92d Mon Sep 17 00:00:00 2001 From: "Max Vollmer (Microsoft Havok)" <60260460+ms-maxvollmer@users.noreply.github.com> Date: Thu, 2 Sep 2021 10:00:56 +0100 Subject: [PATCH] Revert last change (gltf2::Ref type is not a pointer and has a bool() operator) --- code/AssetLib/glTF2/glTF2Importer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/AssetLib/glTF2/glTF2Importer.cpp b/code/AssetLib/glTF2/glTF2Importer.cpp index 2786614f3..aa48b7330 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 (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; }