From 0d05af2861e6fd5cd45c256e42c59e423247201c Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sun, 6 Jun 2021 19:30:26 -0700 Subject: [PATCH] Don't optimize. --- src/gltf/Raw2Gltf.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gltf/Raw2Gltf.cpp b/src/gltf/Raw2Gltf.cpp index 99d228f..ee89542 100644 --- a/src/gltf/Raw2Gltf.cpp +++ b/src/gltf/Raw2Gltf.cpp @@ -156,12 +156,6 @@ ModelData* Raw2Gltf( for (int i = 0; i < raw.GetAnimationCount(); i++) { const RawAnimation& animation = raw.GetAnimation(i); - if (animation.channels.size() == 0) { - fmt::printf( - "Warning: animation '%s' has zero channels. Skipping.\n", animation.name.c_str()); - continue; - } - auto accessor = gltf->AddAccessorAndView(buffer, GLT_FLOAT, animation.times); accessor->min = {*std::min_element(std::begin(animation.times), std::end(animation.times))}; accessor->max = {*std::max_element(std::begin(animation.times), std::end(animation.times))};