[Bf-blender-cvs] [9ae98f305a4] master: Cleanup: spelling in comments
Campbell Barton
noreply at git.blender.org
Wed Mar 30 02:41:55 CEST 2022
Commit: 9ae98f305a4c2ef226ad7319135aae0a7e811ed4
Author: Campbell Barton
Date: Wed Mar 30 11:38:24 2022 +1100
Branches: master
https://developer.blender.org/rB9ae98f305a4c2ef226ad7319135aae0a7e811ed4
Cleanup: spelling in comments
===================================================================
M intern/cycles/util/texture.h
M source/blender/blenkernel/BKE_lib_id.h
M source/blender/blenkernel/intern/blendfile.c
M source/blender/blenkernel/intern/curve.cc
M source/blender/blenkernel/intern/gpencil_geom.cc
M source/blender/blenkernel/intern/lib_override.c
M source/blender/blenkernel/intern/scene.cc
M source/blender/blenloader/intern/versioning_300.c
M source/blender/blenloader/intern/versioning_legacy.c
M source/blender/depsgraph/intern/builder/deg_builder_relations.cc
M source/blender/editors/gpencil/gpencil_primitive.c
M source/blender/editors/gpencil/gpencil_utils.c
M source/blender/editors/gpencil/gpencil_vertex_paint.c
M source/blender/editors/sculpt_paint/curves_sculpt_snake_hook.cc
M source/blender/editors/transform/transform.c
M source/blender/editors/util/ed_transverts.c
M source/blender/makesdna/DNA_scene_types.h
M source/blender/makesdna/DNA_screen_types.h
===================================================================
diff --git a/intern/cycles/util/texture.h b/intern/cycles/util/texture.h
index 33ff349704b..e8bb058a3c9 100644
--- a/intern/cycles/util/texture.h
+++ b/intern/cycles/util/texture.h
@@ -15,7 +15,7 @@ CCL_NAMESPACE_BEGIN
#define TEX_IMAGE_MISSING_A 1
/* Interpolation types for textures
- * cuda also use texture space to store other objects */
+ * CUDA also use texture space to store other objects. */
typedef enum InterpolationType {
INTERPOLATION_NONE = -1,
INTERPOLATION_LINEAR = 0,
diff --git a/source/blender/blenkernel/BKE_lib_id.h b/source/blender/blenkernel/BKE_lib_id.h
index b81c8ef136f..504ab47c1c5 100644
--- a/source/blender/blenkernel/BKE_lib_id.h
+++ b/source/blender/blenkernel/BKE_lib_id.h
@@ -601,7 +601,8 @@ bool BKE_id_can_be_asset(const struct ID *id);
*
* NOTE: Execution of this function can be somewhat expensive currently. If this becomes an issue,
* we should either cache that status info also in virtual override IDs, or address the
- * long-standing TODO of geting an efficient 'owner_id' access for all embeded ID types. */
+ * long-standing TODO of getting an efficient 'owner_id' access for all embedded ID types.
+ */
bool BKE_id_is_editable(struct Main *bmain, struct ID *id);
/**
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index c32081b5d1c..70c3dc2de39 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -352,7 +352,7 @@ static void setup_app_data(bContext *C,
do_versions_ipos_to_animato(bmain);
}
- /* NOTE: readfile's `do_version` does not allow to create new IDs, and only operates on a single
+ /* NOTE: readfile's `do_versions` does not allow to create new IDs, and only operates on a single
* library at a time. This code needs to operate on the whole Main at once. */
/* NOTE: Check bmain version (i.e. current blend file version), AND the versions of all the
* linked libraries. */
diff --git a/source/blender/blenkernel/intern/curve.cc b/source/blender/blenkernel/intern/curve.cc
index 8b58ad848f2..26f5d7e9cb4 100644
--- a/source/blender/blenkernel/intern/curve.cc
+++ b/source/blender/blenkernel/intern/curve.cc
@@ -3184,7 +3184,7 @@ static void calchandleNurb_intern(BezTriple *bezt,
len *= 2.5614f;
if (len != 0.0f) {
- /* only for fcurves */
+ /* Only for F-curves. */
bool leftviolate = false, rightviolate = false;
if (!is_fcurve || fcurve_smoothing == FCURVE_SMOOTH_NONE) {
diff --git a/source/blender/blenkernel/intern/gpencil_geom.cc b/source/blender/blenkernel/intern/gpencil_geom.cc
index 6130d71e030..cca0679bdff 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.cc
+++ b/source/blender/blenkernel/intern/gpencil_geom.cc
@@ -1027,11 +1027,11 @@ bool BKE_gpencil_stroke_smooth_point(bGPDstroke *gps,
* smooth. To solve that problem, choose a different n/2, which does not match the range and
* normalize the weights on finish. This may cause some artifacts at low values.
*
- * keep_shape is a new option to stop the stroke from severly deforming.
+ * keep_shape is a new option to stop the stroke from severely deforming.
* It uses different partially negative weights.
* w = 2 * (nCr(n, j + n/2) / 2^n) - (nCr(3*n, j + n) / 2^(3*n))
* ~ 2 * sqrt(2/(pi*n)) * exp(-2*j*j/n) - sqrt(2/(pi*3*n)) * exp(-2*j*j/(3*n))
- * All weigths still sum up to 1.
+ * All weights still sum up to 1.
* Note these weights only work because the averaging is done in relative coordinates.
*/
float sco[3] = {0.0f, 0.0f, 0.0f};
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c
index eb6d9fe358e..a2338eb9b39 100644
--- a/source/blender/blenkernel/intern/lib_override.c
+++ b/source/blender/blenkernel/intern/lib_override.c
@@ -122,7 +122,7 @@ IDOverrideLibrary *BKE_lib_override_library_init(ID *local_id, ID *reference_id)
local_id->override_library->reference = reference_id;
id_us_plus(local_id->override_library->reference);
local_id->tag &= ~LIB_TAG_OVERRIDE_LIBRARY_REFOK;
- /* By default initialized libioverrides are 'system overrides', higher-level code is responsible
+ /* By default initialized liboverrides are 'system overrides', higher-level code is responsible
* to unset this flag for specific IDs. */
local_id->override_library->flag |= IDOVERRIDE_LIBRARY_FLAG_SYSTEM_DEFINED;
/* TODO: do we want to add tag or flag to referee to mark it as such? */
diff --git a/source/blender/blenkernel/intern/scene.cc b/source/blender/blenkernel/intern/scene.cc
index cebe4482eb7..685d24cee38 100644
--- a/source/blender/blenkernel/intern/scene.cc
+++ b/source/blender/blenkernel/intern/scene.cc
@@ -139,7 +139,7 @@ static void scene_init_data(ID *id)
scene->toolsettings->autokey_mode = (uchar)U.autokey_mode;
- /* grease pencil multiframe falloff curve */
+ /* Grease pencil multi-frame falloff curve. */
scene->toolsettings->gp_sculpt.cur_falloff = BKE_curvemapping_add(1, 0.0f, 0.0f, 1.0f, 1.0f);
CurveMapping *gp_falloff_curve = scene->toolsettings->gp_sculpt.cur_falloff;
BKE_curvemapping_init(gp_falloff_curve);
@@ -423,7 +423,7 @@ static void scene_free_data(ID *id)
scene->display.shading.prop = nullptr;
}
- /* These are freed on doversion. */
+ /* These are freed on `do_versions`. */
BLI_assert(scene->layer_properties == nullptr);
}
@@ -967,7 +967,7 @@ static void scene_blend_write(BlendWriter *writer, ID *id, const void *id_addres
if (tos->gp_interpolate.custom_ipo) {
BKE_curvemapping_blend_write(writer, tos->gp_interpolate.custom_ipo);
}
- /* write grease-pencil multiframe falloff curve to file */
+ /* write grease-pencil multi-frame falloff curve to file */
if (tos->gp_sculpt.cur_falloff) {
BKE_curvemapping_blend_write(writer, tos->gp_sculpt.cur_falloff);
}
@@ -1058,7 +1058,7 @@ static void scene_blend_write(BlendWriter *writer, ID *id, const void *id_addres
BKE_collection_blend_write_nolib(writer, sce->master_collection);
}
- /* Eevee Lightcache */
+ /* Eevee Light-cache */
if (sce->eevee.light_cache_data && !BLO_write_is_undo(writer)) {
BLO_write_struct(writer, LightCache, sce->eevee.light_cache_data);
EEVEE_lightcache_blend_write(writer, sce->eevee.light_cache_data);
@@ -1066,7 +1066,7 @@ static void scene_blend_write(BlendWriter *writer, ID *id, const void *id_addres
BKE_screen_view3d_shading_blend_write(writer, &sce->display.shading);
- /* Freed on doversion. */
+ /* Freed on `do_versions()`. */
BLI_assert(sce->layer_properties == nullptr);
}
@@ -1147,23 +1147,23 @@ static void scene_blend_read_data(BlendDataReader *reader, ID *id)
sce->toolsettings->particle.object = nullptr;
sce->toolsettings->gp_sculpt.paintcursor = nullptr;
- /* relink grease pencil interpolation curves */
+ /* Relink grease pencil interpolation curves. */
BLO_read_data_address(reader, &sce->toolsettings->gp_interpolate.custom_ipo);
if (sce->toolsettings->gp_interpolate.custom_ipo) {
BKE_curvemapping_blend_read(reader, sce->toolsettings->gp_interpolate.custom_ipo);
}
- /* relink grease pencil multiframe falloff curve */
+ /* Relink grease pencil multi-frame falloff curve. */
BLO_read_data_address(reader, &sce->toolsettings->gp_sculpt.cur_falloff);
if (sce->toolsettings->gp_sculpt.cur_falloff) {
BKE_curvemapping_blend_read(reader, sce->toolsettings->gp_sculpt.cur_falloff);
}
- /* relink grease pencil primitive curve */
+ /* Relink grease pencil primitive curve. */
BLO_read_data_address(reader, &sce->toolsettings->gp_sculpt.cur_primitive);
if (sce->toolsettings->gp_sculpt.cur_primitive) {
BKE_curvemapping_blend_read(reader, sce->toolsettings->gp_sculpt.cur_primitive);
}
- /* Relink toolsettings curve profile */
+ /* Relink toolsettings curve profile. */
BLO_read_data_address(reader, &sce->toolsettings->custom_bevel_profile_preset);
if (sce->toolsettings->custom_bevel_profile_preset) {
BKE_curveprofile_blend_read(reader, sce->toolsettings->custom_bevel_profile_preset);
@@ -1729,7 +1729,7 @@ ToolSettings *BKE_toolsettings_copy(ToolSettings *toolsettings, const int flag)
/* duplicate Grease Pencil interpolation curve */
ts->gp_interpolate.custom_ipo = BKE_curvemapping_copy(ts->gp_interpolate.custom_ipo);
- /* Duplicate Grease Pencil multiframe falloff. */
+ /* Duplicate Grease Pencil multi-frame falloff. */
ts->gp_sculpt.cur_falloff = BKE_curvemapping_copy(ts->gp_sculpt.cur_falloff);
ts->gp_sculpt.cur_primitive = BKE_curvemapping_copy(ts->gp_sculpt.cur_primitive);
@@ -1786,7 +1786,7 @@ void BKE_toolsettings_free(ToolSettings *toolsettings)
if (toolsettings->gp_interpolate.custom_ipo) {
BKE_curvemapping_free(toolsettings->gp_interpolate.custom_ipo);
}
- /* free Grease Pencil multiframe falloff curve */
+ /* free Grease Pencil multi-frame falloff curve */
if (toolsettings->gp_sculpt.cur_falloff) {
BKE_curvemapping_free(toolsettings->gp_sculpt.cur_falloff);
}
@@ -2030,7 +2030,7 @@ void BKE_scene_set_background(Main *bmain, Scene *scene)
/* check for cyclic sets, for reading old files but also for definite security (py?) */
BKE_scene_validate_setscene(bmain, scene);
- /* deselect objects (for dataselect) */
+ /* Deselect objects (for data select). */
LISTBASE_FOREACH (Object *, ob, &bmain->objects) {
ob->flag &= ~SELECT;
}
@@ -2625,7 +2625,7 @@ void BKE_scene_graph_update_for_newframe_ex(Depsgraph *depsgraph, const bool cle
BKE_sound_set_cfra(scene->r.cfra);
DEG_graph_relations_update(depsgraph);
/* Update all objects: drivers, matrices, #DispList, etc. flags set
- * by depgraph or manual, no layer check here, gets correct flushed.
+ * by depsgraph or manual, no layer check here, gets correct flushed.
*
* NOTE: Only update for new frame on first iteration. Second iteration is for ensuring user
* edits from callback are properly taken into account. Doing a time update on those would
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/b
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list