Skip to content

Commit

Permalink
Replace an assert by a error log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Kulling authored and kimkulling committed Oct 2, 2023
1 parent d7cde43 commit 5b8cfa9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/PostProcessing/FindInvalidDataProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2022, assimp team
Copyright (c) 2006-2023, assimp team
All rights reserved.
Expand Down Expand Up @@ -273,7 +273,8 @@ void FindInvalidDataProcess::ProcessAnimation(aiAnimation *anim) {
void FindInvalidDataProcess::ProcessAnimationChannel(aiNodeAnim *anim) {
ai_assert(nullptr != anim);
if (anim->mNumPositionKeys == 0 && anim->mNumRotationKeys == 0 && anim->mNumScalingKeys == 0) {
ai_assert_entry();
ASSIMP_LOG_ERROR("Invalid node anuimation instance detected.");

return;
}

Expand Down

0 comments on commit 5b8cfa9

Please sign in to comment.