yo
[carveJwlIkooP6JGAAIwe30JlM.git] / skeleton.h
index 4f35d58e25d50681b462cfac7596f3a8b02991da..ad87fd980dd7fd604e7a9c3f818fe0923fdc2328 100644 (file)
@@ -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; i<skele->anim_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;
 }