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:
authorYimingWu <xp8110@outlook.com>2021-07-04 08:23:52 +0300
committerYimingWu <xp8110@outlook.com>2021-07-04 08:23:52 +0300
commit442f269a72e8f07393fd246f642e210171a1c9bc (patch)
treeecab515215209172245f7709a0c07c1b14dab96c /source/blender/editors/object/object_add.c
parent87dae08dd3f2a80dd208576b130cabaca21c9912 (diff)
parent2d146b61d8583ec7169c5c04263d475a542b06ce (diff)
Merge remote-tracking branch 'origin/master' into lineart-bvh
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r--source/blender/editors/object/object_add.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 4efc653efe2..f6b65170d1b 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1851,7 +1851,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);
@@ -2572,7 +2572,7 @@ static void object_data_convert_ensure_curve_cache(Depsgraph *depsgraph, Scene *
if (ELEM(ob->type, OB_SURF, OB_CURVE, OB_FONT)) {
/* We need 'for render' ON here, to enable computing bevel dipslist if needed.
* Also makes sense anyway, we would not want e.g. to lose hidden parts etc. */
- BKE_displist_make_curveTypes(depsgraph, scene, ob, true, false);
+ BKE_displist_make_curveTypes(depsgraph, scene, ob, true);
}
else if (ob->type == OB_MBALL) {
BKE_displist_make_mball(depsgraph, scene, ob);
@@ -2600,8 +2600,8 @@ static void object_data_convert_curve_to_mesh(Main *bmain, Depsgraph *depsgraph,
/* Change objects which are using same curve.
* A bit annoying, but:
* - It's possible to have multiple curve objects selected which are sharing the same curve
- * datablock. We don't want mesh to be created for every of those objects.
- * - This is how conversion worked for a long long time. */
+ * data-block. We don't want mesh to be created for every of those objects.
+ * - This is how conversion worked for a long time. */
LISTBASE_FOREACH (Object *, other_object, &bmain->objects) {
if (other_object->data == curve) {
other_object->type = OB_MESH;
@@ -2791,11 +2791,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 {
@@ -2865,11 +2865,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 {
@@ -2890,11 +2890,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 {
@@ -2923,10 +2923,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 {
@@ -3004,7 +3004,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 */
@@ -3088,11 +3088,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 {