From 855a3e6ce3741513576dac5ebbecc580fb9c07e7 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sat, 23 Apr 2011 11:09:24 +0000 Subject: Small type-tweaks (int being returned as float) --- source/blender/editors/armature/poseSlide.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/blender/editors/armature/poseSlide.c b/source/blender/editors/armature/poseSlide.c index 2e4fb8a4d31..3d6888d87dc 100644 --- a/source/blender/editors/armature/poseSlide.c +++ b/source/blender/editors/armature/poseSlide.c @@ -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 -- cgit v1.2.3