From 73ef27f15611ccb254816e199f8c74103b3d5172 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 6 Mar 2020 16:45:56 +1100 Subject: Cleanup: keyframing return arguments - Use 'int' for counters instead of short. - Use 'bool' instead of a counter when only a change is being detected. - Use typed enum for keying set flags. - Include in comments when a negate error code may be returned. --- source/blender/editors/space_action/action_edit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_action') diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index 98e2bde499e..a1d8b9d0b2e 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -707,7 +707,7 @@ static void insert_action_keys(bAnimContext *ac, short mode) ReportList *reports = ac->reports; Scene *scene = ac->scene; ToolSettings *ts = scene->toolsettings; - short flag = 0; + eInsertKeyFlags flag; /* filter data */ filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | @@ -721,8 +721,8 @@ static void insert_action_keys(bAnimContext *ac, short mode) ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); - /* init keyframing flag */ - flag = ANIM_get_keyframing_flags(scene, 1); + /* Init keyframing flag. */ + flag = ANIM_get_keyframing_flags(scene, true); /* insert keyframes */ for (ale = anim_data.first; ale; ale = ale->next) { -- cgit v1.2.3