From ffd0fee97c364866d387718a9ee172466054133b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 11 Feb 2019 10:51:25 +1100 Subject: Cleanup: comment indentation & spelling --- source/blender/editors/armature/pose_slide.c | 3 +-- source/blender/editors/curve/editcurve.c | 14 +++++++------- source/blender/editors/gpencil/gpencil_brush.c | 5 ++--- source/blender/editors/gpencil/gpencil_utils.c | 4 ++-- source/blender/editors/metaball/mball_edit.c | 3 +-- source/blender/editors/object/object_modifier.c | 4 ++-- .../blender/editors/space_outliner/outliner_collections.c | 8 ++++---- source/blender/editors/space_outliner/outliner_dragdrop.c | 5 ++--- source/blender/editors/transform/transform.c | 2 +- 9 files changed, 22 insertions(+), 26 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/armature/pose_slide.c b/source/blender/editors/armature/pose_slide.c index ec2ce693ef6..a7b599d0062 100644 --- a/source/blender/editors/armature/pose_slide.c +++ b/source/blender/editors/armature/pose_slide.c @@ -206,8 +206,7 @@ static int pose_slide_init(bContext *C, wmOperator *op, ePoseSlide_Modes mode) pso->axislock = RNA_enum_get(op->ptr, "axis_lock"); /* for each Pose-Channel which gets affected, get the F-Curves for that channel - * and set the relevant transform flags... - */ + * and set the relevant transform flags... */ poseAnim_mapping_get(C, &pso->pfLinks); Object **objects = BKE_view_layer_array_from_objects_in_mode_unique_data(CTX_data_view_layer(C), diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 1821d397cf9..23dc165cc4c 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -4341,8 +4341,8 @@ static int make_segment_exec(bContext *C, wmOperator *op) nu1 = nu; /* Just in case both of first/last CV are selected check - * whether we really need to switch the direction. - */ + * whether we really need to switch the direction. + */ if (!BEZT_ISSEL_ANY_HIDDENHANDLES(v3d, nu1->bezt)) { BKE_nurb_direction_switch(nu1); keyData_switchDirectionNurb(cu, nu1); @@ -4358,8 +4358,8 @@ static int make_segment_exec(bContext *C, wmOperator *op) nu2 = nu; /* Just in case both of first/last CV are selected check - * whether we really need to switch the direction. - */ + * whether we really need to switch the direction. + */ if (!BEZT_ISSEL_ANY_HIDDENHANDLES(v3d, &(nu->bezt[nu2->pntsu - 1]))) { BKE_nurb_direction_switch(nu2); keyData_switchDirectionNurb(cu, nu2); @@ -4369,9 +4369,9 @@ static int make_segment_exec(bContext *C, wmOperator *op) } else if (nu->pntsv == 1) { /* Same logic as above: if first point is selected spline is - * preferred for nu1, if last point is selected spline is - * preferred for u2u. - */ + * preferred for nu1, if last point is selected spline is + * preferred for u2u. + */ bp = nu->bp; if (bp[nu->pntsu - 1].f1 & SELECT) { diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c index c7020364fff..a409087c8fa 100644 --- a/source/blender/editors/gpencil/gpencil_brush.c +++ b/source/blender/editors/gpencil/gpencil_brush.c @@ -1244,9 +1244,8 @@ static bool gpsculpt_brush_init(bContext *C, wmOperator *op) gso->is_multiframe = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(gso->gpd); gso->use_multiframe_falloff = (ts->gp_sculpt.flag & GP_SCULPT_SETT_FLAG_FRAME_FALLOFF) != 0; - /* init multiedit falloff curve data before doing anything, - * so we won't have to do it again later - */ + /* Init multi-edit falloff curve data before doing anything, + * so we won't have to do it again later. */ if (gso->is_multiframe) { curvemapping_initialize(ts->gp_sculpt.cur_falloff); } diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c index 210d234c6ad..0fe1412f2a9 100644 --- a/source/blender/editors/gpencil/gpencil_utils.c +++ b/source/blender/editors/gpencil/gpencil_utils.c @@ -720,8 +720,8 @@ void gp_point_to_xy_fl( /** -* generic based on gp_point_to_xy_fl -*/ + * generic based on gp_point_to_xy_fl + */ void gp_point_3d_to_xy(const GP_SpaceConversion *gsc, const short flag, const float pt[3], float xy[2]) { const ARegion *ar = gsc->ar; diff --git a/source/blender/editors/metaball/mball_edit.c b/source/blender/editors/metaball/mball_edit.c index de4e5e9ab31..9210f720f1c 100644 --- a/source/blender/editors/metaball/mball_edit.c +++ b/source/blender/editors/metaball/mball_edit.c @@ -740,8 +740,7 @@ bool ED_mball_select_pick(bContext *C, const int mval[2], bool extend, bool dese metaelem_id += 0x10000; } - /* When some metaelem was found, then it is necessary to select or - * deselect it. */ + /* When some metaelem was found, then it is necessary to select or deselect it. */ if (ml_act) { if (!extend && !deselect && !toggle) { uint objects_len; diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index 964a0efb3ee..d6aa74da273 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -260,8 +260,8 @@ static bool object_has_modifier_cb(Object *ob, void *data) } /* Use with ED_object_iter_other(). Sets the total number of levels -* for any multires modifiers on the object to the int pointed to by -* callback_data. */ + * for any multires modifiers on the object to the int pointed to by + * callback_data. */ bool ED_object_multires_update_totlevels_cb(Object *ob, void *totlevel_v) { ModifierData *md; diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index ee4b2bc9ef9..49a77af2bbf 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -1190,12 +1190,12 @@ static TreeTraversalAction outliner_hide_find_data_to_edit(TreeElement *te, void LayerCollection *lc = te->directdata; if (lc->collection->flag & COLLECTION_IS_MASTER) { - /* skip - showing warning/error message might be misleading - * when deleting multiple collections, so just do nothing */ + /* Skip - showing warning/error message might be misleading + * when deleting multiple collections, so just do nothing. */ } else { - /* Delete, duplicate and link don't edit children, those will come along - * with the parents. */ + /* Delete, duplicate and link don't edit children, + * those will come along with the parents. */ BLI_gset_add(data->collections_to_edit, lc); } } diff --git a/source/blender/editors/space_outliner/outliner_dragdrop.c b/source/blender/editors/space_outliner/outliner_dragdrop.c index 3fa980f5554..3aa18f2e3f9 100644 --- a/source/blender/editors/space_outliner/outliner_dragdrop.c +++ b/source/blender/editors/space_outliner/outliner_dragdrop.c @@ -240,9 +240,8 @@ static bool parent_drop_allowed(SpaceOops *soops, TreeElement *te, Object *poten Scene *scene = (Scene *)outliner_search_back(soops, te, ID_SCE); /* currently outliner organized in a way that if there's no parent scene - * element for object it means that all displayed objects belong to - * active scene and parenting them is allowed (sergey) - */ + * element for object it means that all displayed objects belong to + * active scene and parenting them is allowed (sergey) */ if (scene) { for (ViewLayer *view_layer = scene->view_layers.first; view_layer; diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 2327ead4770..727706f8ffe 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -4548,7 +4548,7 @@ static void applyTrackball(TransInfo *t, const int UNUSED(mval[2])) /* Transform (Normal Rotation) */ /** \name Transform Normal Rotation -* \{ */ + * \{ */ static void storeCustomLNorValue(TransDataContainer *tc, BMesh *bm) { -- cgit v1.2.3