From a2c182e9233333fc3b8ff40d352113ec95e7e30c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 3 Mar 2012 16:31:46 +0000 Subject: style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide). --- .../editors/animation/anim_channels_defines.c | 6 +- source/blender/editors/animation/anim_deps.c | 6 +- source/blender/editors/animation/anim_markers.c | 109 ++++++++++----------- source/blender/editors/animation/keyframes_edit.c | 4 +- 4 files changed, 61 insertions(+), 64 deletions(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index f8bb690e31d..ae1f308369d 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -817,7 +817,7 @@ static int acf_group_setting_flag(bAnimContext *ac, int setting, short *neg) return AGRP_MUTED; case ACHANNEL_SETTING_PROTECT: /* protected */ - //*neg= 1; - if we change this to edtiability + // *neg= 1; - if we change this to edtiability return AGRP_PROTECTED; case ACHANNEL_SETTING_VISIBLE: /* visiblity - graph editor */ @@ -905,7 +905,7 @@ static int acf_fcurve_setting_flag(bAnimContext *UNUSED(ac), int setting, short return FCURVE_MUTED; case ACHANNEL_SETTING_PROTECT: /* protected */ - //*neg= 1; - if we change this to edtiability + // *neg= 1; - if we change this to edtiability return FCURVE_PROTECTED; case ACHANNEL_SETTING_VISIBLE: /* visiblity - graph editor */ @@ -2450,7 +2450,7 @@ static int acf_gpl_setting_flag(bAnimContext *UNUSED(ac), int setting, short *ne return GP_LAYER_HIDE; case ACHANNEL_SETTING_PROTECT: /* protected */ - //*neg= 1; - if we change this to edtiability + // *neg= 1; - if we change this to edtiability return GP_LAYER_LOCKED; default: /* unsupported */ diff --git a/source/blender/editors/animation/anim_deps.c b/source/blender/editors/animation/anim_deps.c index 8e91e575db1..be66edb8dc9 100644 --- a/source/blender/editors/animation/anim_deps.c +++ b/source/blender/editors/animation/anim_deps.c @@ -81,8 +81,8 @@ void ANIM_list_elem_update(Scene *scene, bAnimListElem *ale) if (fcu && fcu->rna_path) { /* if we have an fcurve, call the update for the property we - are editing, this is then expected to do the proper redraws - and depsgraph updates */ + * are editing, this is then expected to do the proper redraws + * and depsgraph updates */ PointerRNA id_ptr, ptr; PropertyRNA *prop; @@ -93,7 +93,7 @@ void ANIM_list_elem_update(Scene *scene, bAnimListElem *ale) } else { /* in other case we do standard depsgaph update, ideally - we'd be calling property update functions here too ... */ + * we'd be calling property update functions here too ... */ DAG_id_tag_update(id, OB_RECALC_OB|OB_RECALC_DATA|OB_RECALC_TIME); // XXX or do we want something more restrictive? } } diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index 7e92c9eb690..7f7b1b28319 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -597,29 +597,28 @@ static void MARKER_OT_add(wmOperatorType *ot) /* ************************** transform markers *************************** */ - /* operator state vars used: - frs: delta movement - -functions: - - init() check selection, add customdata with old values and some lookups - - apply() do the actual movement - - exit() cleanup, send notifier - - cancel() to escape from modal - -callbacks: - - exec() calls init, apply, exit - - invoke() calls init, adds modal handler - - modal() accept modal events while doing it, ends with apply and exit, or cancel - -*/ + * frs: delta movement + * + * functions: + * + * init() check selection, add customdata with old values and some lookups + * + * apply() do the actual movement + * + * exit() cleanup, send notifier + * + * cancel() to escape from modal + * + * callbacks: + * + * exec() calls init, apply, exit + * + * invoke() calls init, adds modal handler + * + * modal() accept modal events while doing it, ends with apply and exit, or cancel + * + */ typedef struct MarkerMove { SpaceLink *slink; @@ -905,23 +904,21 @@ static void MARKER_OT_move(wmOperatorType *ot) /* ************************** duplicate markers *************************** */ -/* operator state vars used: - frs: delta movement - -functions: - - apply() do the actual duplicate - -callbacks: - - exec() calls apply, move_exec - - invoke() calls apply, move_invoke - - modal() uses move_modal - -*/ - +/* operator state vars used: + * frs: delta movement + * + * functions: + * + * apply() do the actual duplicate + * + * callbacks: + * + * exec() calls apply, move_exec + * + * invoke() calls apply, move_invoke + * + * modal() uses move_modal + */ /* duplicate selected TimeMarkers */ static void ed_marker_duplicate_apply(bContext *C) @@ -1125,23 +1122,23 @@ static void MARKER_OT_select(wmOperatorType *ot) /* *************************** border select markers **************** */ /* operator state vars used: (added by default WM callbacks) - xmin, ymin - xmax, ymax - -customdata: the wmGesture pointer, with subwindow - -callbacks: - - exec() has to be filled in by user - - invoke() default WM function - adds modal handler - - modal() default WM function - accept modal events while doing it, calls exec(), handles ESC and border drawing - - poll() has to be filled in by user for context -*/ + * xmin, ymin + * xmax, ymax + * + * customdata: the wmGesture pointer, with subwindow + * + * callbacks: + * + * exec() has to be filled in by user + * + * invoke() default WM function + * adds modal handler + * + * modal() default WM function + * accept modal events while doing it, calls exec(), handles ESC and border drawing + * + * poll() has to be filled in by user for context + */ static int ed_marker_border_select_exec(bContext *C, wmOperator *op) { diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c index af78fe739cc..a99276db122 100644 --- a/source/blender/editors/animation/keyframes_edit.c +++ b/source/blender/editors/animation/keyframes_edit.c @@ -136,8 +136,8 @@ short ANIM_fcurve_keyframes_loop(KeyframeEditData *ked, FCurve *fcu, KeyframeEdi if (ked) ked->curIndex= i; /* Exit with return-code '1' if function returns positive - * This is useful if finding if some BezTriple satisfies a condition. - */ + * This is useful if finding if some BezTriple satisfies a condition. + */ if (key_cb(ked, bezt)) return 1; } } -- cgit v1.2.3