BGE Animations: Various changes to make code reviewers happy:
[blender-staging.git] / source / gameengine / Converter / BL_ArmatureObject.cpp
index 72a31566e7c9b8446e2cb821f3bc6517fc9d1f60..395cae4ba87174c180b74084d8bfe92ce617a9e8 100644 (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;
        }