[Bf-blender-cvs] [5b7a35ddfbc] master: Cleanup: Use "r_" prefix for return arguments
Hans Goudey
noreply at git.blender.org
Thu Sep 17 18:06:48 CEST 2020
Commit: 5b7a35ddfbc7526c96dc6005a11979264a9cf1fe
Author: Hans Goudey
Date: Thu Sep 17 11:06:41 2020 -0500
Branches: master
https://developer.blender.org/rB5b7a35ddfbc7526c96dc6005a11979264a9cf1fe
Cleanup: Use "r_" prefix for return arguments
===================================================================
M source/blender/editors/space_graph/graph_buttons.c
===================================================================
diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c
index 47f910402fe..0c2280f0c7e 100644
--- a/source/blender/editors/space_graph/graph_buttons.c
+++ b/source/blender/editors/space_graph/graph_buttons.c
@@ -235,13 +235,15 @@ static void graph_panel_properties(const bContext *C, Panel *panel)
/* ******************* active Keyframe ************** */
/* get 'active' keyframe for panel editing */
-static bool get_active_fcurve_keyframe_edit(FCurve *fcu, BezTriple **bezt, BezTriple **prevbezt)
+static bool get_active_fcurve_keyframe_edit(FCurve *fcu,
+ BezTriple **r_bezt,
+ BezTriple **r_prevbezt)
{
BezTriple *b;
int i;
/* zero the pointers */
- *bezt = *prevbezt = NULL;
+ *r_bezt = *r_prevbezt = NULL;
/* sanity checks */
if ((fcu->bezt == NULL) || (fcu->totvert == 0)) {
@@ -258,8 +260,8 @@ static bool get_active_fcurve_keyframe_edit(FCurve *fcu, BezTriple **bezt, BezTr
* - 'previous' is either the one before, of the keyframe itself (which is still fine)
* XXX: we can just make this null instead if needed
*/
- *prevbezt = (i > 0) ? b - 1 : b;
- *bezt = b;
+ *r_prevbezt = (i > 0) ? b - 1 : b;
+ *r_bezt = b;
return true;
}
More information about the Bf-blender-cvs
mailing list