BGE Animations: Various changes to make code reviewers happy:

* Naming/style changes
  * Taking advantage of switch statements
  * Removing unneeded NULL checks
  * etc
This commit is contained in:
2011-08-29 06:19:55 +00:00
parent ca79dee61f
commit 296cc41b03
5 changed files with 72 additions and 70 deletions

View File

@@ -138,19 +138,22 @@ void game_copy_pose(bPose **dst, bPose *src, int copy_constraint)
/* Only allowed for Poses with identical channels */
void game_blend_poses(bPose *dst, bPose *src, float srcweight/*, short mode*/)
{
{
short mode= ACTSTRIPMODE_BLEND;
bPoseChannel *dchan;
const bPoseChannel *schan;
bConstraint *dcon, *scon;
float dstweight;
int i;
short mode = ACTSTRIPMODE_BLEND;
switch (mode){
case ACTSTRIPMODE_BLEND:
dstweight = 1.0F - srcweight;
break;
case ACTSTRIPMODE_ADD:
dstweight = 1.0F;
break;
default :
dstweight = 1.0F;
}