Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-17 19:06:41 +0300
committerHans Goudey <h.goudey@me.com>2020-09-17 19:06:41 +0300
commit5b7a35ddfbc7526c96dc6005a11979264a9cf1fe (patch)
treea7fb9b98071aff4d5560f382b958c6f0f4a923dd /source/blender/editors
parent08a3f01ddcd4ad3e81e66d8e05a65b67df5ebf66 (diff)
Cleanup: Use "r_" prefix for return arguments
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_graph/graph_buttons.c10
1 files changed, 6 insertions, 4 deletions
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;
}