Added more debug output in case of an assert that was triggered.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5916 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -305,8 +305,14 @@ void KartModel::OnAnimationEnd(scene::IAnimatedMeshSceneNode *node)
|
||||
|
||||
// It should be a non-default type of animation, and should have
|
||||
// a non negative frame (i.e. the animation is indeed defined).
|
||||
assert(m_current_animation!=AF_DEFAULT);
|
||||
assert(m_animation_frame[m_current_animation]>-1 );
|
||||
if(m_current_animation==AF_DEFAULT ||
|
||||
m_animation_frame[m_current_animation]<=-1)
|
||||
{
|
||||
printf("OnAnimationEnd for '%s': current %d frame %d\n",
|
||||
m_model_filename.c_str(),
|
||||
m_current_animation, m_animation_frame[m_current_animation]);
|
||||
assert(false);
|
||||
}
|
||||
|
||||
// 'type' is the start frame of the animation, type + 1 the frame
|
||||
// to begin the loop with, type + 2 to end the frame with
|
||||
|
||||
Reference in New Issue
Block a user