projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
automatic camera inversing across portals
[carveJwlIkooP6JGAAIwe30JlM.git]
/
skeleton.h
diff --git
a/skeleton.h
b/skeleton.h
index 4f35d58e25d50681b462cfac7596f3a8b02991da..ad87fd980dd7fd604e7a9c3f818fe0923fdc2328 100644
(file)
--- a/
skeleton.h
+++ b/
skeleton.h
@@
-61,6
+61,9
@@
VG_STATIC u32 skeleton_bone_id( struct skeleton *skele, const char *name )
return i;
}
return i;
}
+ vg_error( "skeleton_bone_id( *, \"%s\" );\n", name );
+ vg_fatal_exit_loop( "Bone does not exist\n" );
+
return 0;
}
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,
* 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++ )
{
{
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;
}
return anim;
}
+ vg_error( "skeleton_get_anim( *, \"%s\" )\n", name );
+ vg_fatal_exit_loop( "Invalid animation name\n" );
+
return NULL;
}
return NULL;
}