Skip to content

Commit 0d05af2

Browse files
committed
Don't optimize.
1 parent 2ce2275 commit 0d05af2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/gltf/Raw2Gltf.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ ModelData* Raw2Gltf(
156156
for (int i = 0; i < raw.GetAnimationCount(); i++) {
157157
const RawAnimation& animation = raw.GetAnimation(i);
158158

159-
if (animation.channels.size() == 0) {
160-
fmt::printf(
161-
"Warning: animation '%s' has zero channels. Skipping.\n", animation.name.c_str());
162-
continue;
163-
}
164-
165159
auto accessor = gltf->AddAccessorAndView(buffer, GLT_FLOAT, animation.times);
166160
accessor->min = {*std::min_element(std::begin(animation.times), std::end(animation.times))};
167161
accessor->max = {*std::max_element(std::begin(animation.times), std::end(animation.times))};

0 commit comments

Comments
 (0)