X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=skeleton.h;h=ad87fd980dd7fd604e7a9c3f818fe0923fdc2328;hb=2383f834f7c7890b12fd4fee9387f4cd3ca3b1e0;hp=4f35d58e25d50681b462cfac7596f3a8b02991da;hpb=2a238d32da833812e837cf38e16a7685c98db5c3;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/skeleton.h b/skeleton.h index 4f35d58..ad87fd9 100644 --- a/skeleton.h +++ b/skeleton.h @@ -61,6 +61,9 @@ VG_STATIC u32 skeleton_bone_id( struct skeleton *skele, const char *name ) return i; } + vg_error( "skeleton_bone_id( *, \"%s\" );\n", name ); + vg_fatal_exit_loop( "Bone does not exist\n" ); + return 0; } @@ -376,7 +379,7 @@ VG_STATIC void skeleton_apply_standard( struct skeleton *skele, mdl_keyframe *po * Get an animation by name */ VG_STATIC struct skeleton_anim *skeleton_get_anim( struct skeleton *skele, - const char *name ) + const char *name ) { for( int i=0; ianim_count; i++ ) { @@ -386,6 +389,9 @@ VG_STATIC struct skeleton_anim *skeleton_get_anim( struct skeleton *skele, return anim; } + vg_error( "skeleton_get_anim( *, \"%s\" )\n", name ); + vg_fatal_exit_loop( "Invalid animation name\n" ); + return NULL; }