diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-24 08:56:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-24 08:59:34 +0300 |
commit | 4b9ff3cd42be427e478743648e9951bf8c189a04 (patch) | |
tree | b0cb1462a8fdae38df4a0a1067349f3118d56a43 /source/blender/editors/object | |
parent | 2e99a74df9ecfa18c4081cdcc82227e2e24f14b1 (diff) |
Cleanup: comment blocks, trailing space in comments
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 24 | ||||
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 6 | ||||
-rw-r--r-- | source/blender/editors/object/object_edit.c | 2 | ||||
-rw-r--r-- | source/blender/editors/object/object_hook.c | 4 | ||||
-rw-r--r-- | source/blender/editors/object/object_modifier.c | 2 | ||||
-rw-r--r-- | source/blender/editors/object/object_ops.c | 2 | ||||
-rw-r--r-- | source/blender/editors/object/object_remesh.c | 2 | ||||
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 4 |
8 files changed, 23 insertions, 23 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index b677a2f96c3..3f2356fa774 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -1854,7 +1854,7 @@ static int object_speaker_add_exec(bContext *C, wmOperator *op) /* hook them up */ BKE_nlatrack_add_strip(nlt, strip, is_liboverride); - /* auto-name the strip, and give the track an interesting name */ + /* Auto-name the strip, and give the track an interesting name. */ BLI_strncpy(nlt->name, DATA_("SoundTrack"), sizeof(nlt->name)); BKE_nlastrip_validate_name(adt, strip); @@ -2794,11 +2794,11 @@ static int object_convert_exec(bContext *C, wmOperator *op) basen = duplibase_for_convert(bmain, depsgraph, scene, view_layer, base, NULL); newob = basen->object; - /* decrement original mesh's usage count */ + /* Decrement original mesh's usage count. */ Mesh *me = newob->data; id_us_min(&me->id); - /* make a new copy of the mesh */ + /* Make a new copy of the mesh. */ newob->data = BKE_id_copy(bmain, &me->id); } else { @@ -2868,11 +2868,11 @@ static int object_convert_exec(bContext *C, wmOperator *op) basen = duplibase_for_convert(bmain, depsgraph, scene, view_layer, base, NULL); newob = basen->object; - /* decrement original mesh's usage count */ + /* Decrement original mesh's usage count. */ Mesh *me = newob->data; id_us_min(&me->id); - /* make a new copy of the mesh */ + /* Make a new copy of the mesh. */ newob->data = BKE_id_copy(bmain, &me->id); } else { @@ -2893,11 +2893,11 @@ static int object_convert_exec(bContext *C, wmOperator *op) basen = duplibase_for_convert(bmain, depsgraph, scene, view_layer, base, NULL); newob = basen->object; - /* decrement original mesh's usage count */ + /* Decrement original mesh's usage count. */ Mesh *me = newob->data; id_us_min(&me->id); - /* make a new copy of the mesh */ + /* Make a new copy of the mesh. */ newob->data = BKE_id_copy(bmain, &me->id); } else { @@ -2926,10 +2926,10 @@ static int object_convert_exec(bContext *C, wmOperator *op) basen = duplibase_for_convert(bmain, depsgraph, scene, view_layer, base, NULL); newob = basen->object; - /* decrement original curve's usage count */ + /* Decrement original curve's usage count. */ id_us_min(&((Curve *)newob->data)->id); - /* make a new copy of the curve */ + /* Make a new copy of the curve. */ newob->data = BKE_id_copy(bmain, ob->data); } else { @@ -3007,7 +3007,7 @@ static int object_convert_exec(bContext *C, wmOperator *op) basen = duplibase_for_convert(bmain, depsgraph, scene, view_layer, base, NULL); newob = basen->object; - /* decrement original curve's usage count */ + /* Decrement original curve's usage count. */ id_us_min(&((Curve *)newob->data)->id); /* make a new copy of the curve */ @@ -3091,11 +3091,11 @@ static int object_convert_exec(bContext *C, wmOperator *op) basen = duplibase_for_convert(bmain, depsgraph, scene, view_layer, base, NULL); newob = basen->object; - /* decrement original pointclouds's usage count */ + /* Decrement original point-cloud's usage count. */ PointCloud *pointcloud = newob->data; id_us_min(&pointcloud->id); - /* make a new copy of the pointcloud */ + /* Make a new copy of the point-cloud. */ newob->data = BKE_id_copy(bmain, &pointcloud->id); } else { diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 06d6f2b94f3..a7aa6b4d6a4 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -547,7 +547,7 @@ static void test_constraint( else { Curve *cu = ct->tar->data; - /* auto-set 'Path' setting on curve so this works */ + /* auto-set 'Path' setting on curve so this works. */ cu->flag |= CU_PATH; } } @@ -1977,7 +1977,7 @@ static bool get_new_constraint_target( (!only_curve && !only_mesh)) { /* Only use the object & bone if the bone is visible & selected - * since we may have multiple objects in pose mode at once. */ + * since we may have multiple objects in pose mode at once. */ bPoseChannel *pchan = BKE_pose_channel_active_or_first_selected(ob); if (pchan != NULL) { *tar_pchan = pchan; @@ -2100,7 +2100,7 @@ static int constraint_add_exec( } } - /* do type-specific tweaking to the constraint settings */ + /* Do type-specific tweaking to the constraint settings. */ switch (type) { case CONSTRAINT_TYPE_PYTHON: /* FIXME: this code is not really valid anymore */ { diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index c8923bb55c1..9c2a4fb1880 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1152,7 +1152,7 @@ void ED_objects_recalculate_paths(bContext *C, Scene *scene, eObjectPathCalcRang Depsgraph *depsgraph; bool free_depsgraph = false; /* For a single frame update it's faster to re-use existing dependency graph and avoid overhead - * of building all the relations and so on for a temporary one. */ + * of building all the relations and so on for a temporary one. */ if (range == OBJECT_PATH_CALC_RANGE_CURRENT_FRAME) { /* NOTE: Dependency graph will be evaluated at all the frames, but we first need to access some * nested pointers, like animation data. */ diff --git a/source/blender/editors/object/object_hook.c b/source/blender/editors/object/object_hook.c index 7122fd09892..fcee2818b22 100644 --- a/source/blender/editors/object/object_hook.c +++ b/source/blender/editors/object/object_hook.c @@ -772,7 +772,7 @@ void OBJECT_OT_hook_remove(wmOperatorType *ot) /* flags */ /* this operator removes modifier which isn't stored in local undo stack, - * so redoing it from redo panel gives totally weird results */ + * so redoing it from redo panel gives totally weird results. */ ot->flag = /*OPTYPE_REGISTER|*/ OPTYPE_UNDO; /* properties */ @@ -931,7 +931,7 @@ void OBJECT_OT_hook_assign(wmOperatorType *ot) /* flags */ /* this operator changes data stored in modifier which doesn't get pushed to undo stack, - * so redoing it from redo panel gives totally weird results */ + * so redoing it from redo panel gives totally weird results. */ ot->flag = /*OPTYPE_REGISTER|*/ OPTYPE_UNDO; /* properties */ diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index e14e5cbd44b..c336f77eaa9 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -2147,7 +2147,7 @@ static int multires_external_pack_exec(bContext *C, wmOperator *UNUSED(op)) return OPERATOR_CANCELLED; } - /* XXX don't remove.. */ + /* XXX don't remove. */ CustomData_external_remove(&me->ldata, &me->id, CD_MDISPS, me->totloop); return OPERATOR_FINISHED; diff --git a/source/blender/editors/object/object_ops.c b/source/blender/editors/object/object_ops.c index b50fc3c88fd..00ef439c18a 100644 --- a/source/blender/editors/object/object_ops.c +++ b/source/blender/editors/object/object_ops.c @@ -322,7 +322,7 @@ void ED_keymap_object(wmKeyConfig *keyconf) keymap = WM_keymap_ensure(keyconf, "Object Non-modal", 0, 0); /* Object Mode ---------------------------------------------------------------- */ - /* Note: this keymap gets disabled in non-objectmode, */ + /* Note: this keymap gets disabled in non-objectmode. */ keymap = WM_keymap_ensure(keyconf, "Object Mode", 0, 0); keymap->poll = object_mode_poll; } diff --git a/source/blender/editors/object/object_remesh.c b/source/blender/editors/object/object_remesh.c index c04c91d21b5..05f9980e0ab 100644 --- a/source/blender/editors/object/object_remesh.c +++ b/source/blender/editors/object/object_remesh.c @@ -588,7 +588,7 @@ static int voxel_size_edit_invoke(bContext *C, wmOperator *op, const wmEvent *ev /* Write the text position into the matrix. */ copy_v3_v3(cd->text_mat[3], text_pos); - /* Scale the text. */ + /* Scale the text. */ float text_pos_word_space[3]; mul_v3_m4v3(text_pos_word_space, active_object->obmat, text_pos); const float pixelsize = ED_view3d_pixel_size(rv3d, text_pos_word_space); diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 3f40d637188..ae6ccf8d6a7 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -516,14 +516,14 @@ static void mesh_defvert_mirror_update_internal(Object *ob, const int def_nr) { if (def_nr == -1) { - /* all vgroups, add groups where needed */ + /* All vgroups, add groups where needed. */ int flip_map_len; int *flip_map = BKE_object_defgroup_flip_map(ob, &flip_map_len, true); BKE_defvert_sync_mapped(dvert_dst, dvert_src, flip_map, flip_map_len, true); MEM_freeN(flip_map); } else { - /* single vgroup */ + /* Single vgroup. */ MDeformWeight *dw = BKE_defvert_ensure_index(dvert_dst, BKE_object_defgroup_flip_index(ob, def_nr, 1)); if (dw) { |