Small type-tweaks (int being returned as float)
authorJoshua Leung <aligorith@gmail.com>
Sat, 23 Apr 2011 11:09:24 +0000 (11:09 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 23 Apr 2011 11:09:24 +0000 (11:09 +0000)
source/blender/editors/armature/poseSlide.c

index 2e4fb8a4d312b7ca8f2872fc6653be20147ecc52..3d6888d87dcd6bbb32f5ef76f2a176367e1c17ae 100644 (file)
@@ -989,11 +989,11 @@ static float pose_propagate_get_boneHoldEndFrame (Object *ob, tPChanFCurveLink *
 }
 
 /* get reference value from F-Curve using RNA */
-static float pose_propagate_get_refVal (Object *ob, FCurve *fcu, float *value)
+static short pose_propagate_get_refVal (Object *ob, FCurve *fcu, float *value)
 {
        PointerRNA id_ptr, ptr;
        PropertyRNA *prop;
-       int found= FALSE;
+       short found= FALSE;
        
        /* base pointer is always the object -> id_ptr */
        RNA_id_pointer_create(&ob->id, &id_ptr);
@@ -1066,9 +1066,9 @@ static void pose_propagate_fcurve (wmOperator *op, Object *ob, FCurve *fcu,
         * doesn't need to firstly keyframe the pose (though this doesn't mean that 
         * they can't either)
         */
-       if(!pose_propagate_get_refVal(ob, fcu, &refVal))
+       if( !pose_propagate_get_refVal(ob, fcu, &refVal))
                return;
-
+       
        /* find the first keyframe to start propagating from 
         *      - if there's a keyframe on the current frame, we probably want to save this value there too
         *        since it may be as of yet unkeyed