[Bf-blender-cvs] [844cca99843] master: Cleanup: spelling in comments
Campbell Barton
noreply at git.blender.org
Fri Jan 20 05:20:58 CET 2023
Commit: 844cca998435b5e37b2d9c607c24efc21929d8e0
Author: Campbell Barton
Date: Fri Jan 20 15:19:32 2023 +1100
Branches: master
https://developer.blender.org/rB844cca998435b5e37b2d9c607c24efc21929d8e0
Cleanup: spelling in comments
===================================================================
M intern/cycles/scene/light.cpp
M source/blender/blenkernel/BKE_nla.h
M source/blender/blenkernel/BKE_node.h
M source/blender/blenkernel/intern/DerivedMesh.cc
M source/blender/blenkernel/intern/dynamicpaint.c
M source/blender/blenkernel/intern/particle.cc
M source/blender/blenkernel/intern/softbody.c
M source/blender/blenlib/BLI_offset_indices.hh
M source/blender/bmesh/intern/bmesh_interp.c
M source/blender/draw/intern/draw_manager.c
M source/blender/editors/include/ED_view3d.h
M source/blender/editors/include/UI_interface.h
M source/blender/editors/mesh/editmesh_utils.c
M source/blender/editors/physics/particle_object.c
M source/blender/editors/space_file/filelist.cc
M source/blender/editors/transform/transform_convert_armature.c
M source/blender/editors/uvedit/uvedit_islands.cc
M source/blender/editors/uvedit/uvedit_select.c
M source/blender/editors/uvedit/uvedit_smart_stitch.c
M source/blender/editors/uvedit/uvedit_unwrap_ops.c
M source/blender/geometry/intern/trim_curves.cc
M source/blender/windowmanager/intern/wm_event_system.cc
===================================================================
diff --git a/intern/cycles/scene/light.cpp b/intern/cycles/scene/light.cpp
index 92649563ebd..fa710e8b250 100644
--- a/intern/cycles/scene/light.cpp
+++ b/intern/cycles/scene/light.cpp
@@ -836,8 +836,8 @@ void LightManager::device_update_background(Device *device,
if (sun_average_radiance > 0.0f) {
/* The weighting here is just a heuristic that was empirically determined.
* The sun's average radiance is much higher than the map's average radiance,
- * but we don't want to weight the background light too much becaused
- * visibility is not accounted for anyways. */
+ * but we don't want to weight the background light too much because
+ * visibility is not accounted for anyway. */
background_light->set_average_radiance(0.8f * map_average_radiance +
0.2f * sun_average_radiance);
}
diff --git a/source/blender/blenkernel/BKE_nla.h b/source/blender/blenkernel/BKE_nla.h
index 3d304859e1b..dd558dc197c 100644
--- a/source/blender/blenkernel/BKE_nla.h
+++ b/source/blender/blenkernel/BKE_nla.h
@@ -298,7 +298,7 @@ void BKE_nlastrip_recalculate_bounds(struct NlaStrip *strip);
void BKE_nlastrip_recalculate_bounds_sync_action(struct NlaStrip *strip);
/**
- * Recalculate the Blendin and Blendout values after a strip transform update.
+ * Recalculate the blend-in and blend-out values after a strip transform update.
*/
void BKE_nlastrip_recalculate_blend(struct NlaStrip *strip);
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h
index d2f4c6e3b6e..915ca87621a 100644
--- a/source/blender/blenkernel/BKE_node.h
+++ b/source/blender/blenkernel/BKE_node.h
@@ -360,7 +360,7 @@ typedef struct bNodeType {
ExtensionRNA rna_ext;
} bNodeType;
-/* nodetype->nclass, for add-menu and themes */
+/** #bNodeType.nclass (for add-menu and themes). */
#define NODE_CLASS_INPUT 0
#define NODE_CLASS_OUTPUT 1
#define NODE_CLASS_OP_COLOR 3
diff --git a/source/blender/blenkernel/intern/DerivedMesh.cc b/source/blender/blenkernel/intern/DerivedMesh.cc
index 39a68b72d2a..565009fe08f 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.cc
+++ b/source/blender/blenkernel/intern/DerivedMesh.cc
@@ -1220,11 +1220,12 @@ static void editbmesh_calc_modifier_final_normals(Mesh *mesh_final,
}
}
else {
- /* Same as mesh_calc_modifiers. If using loop normals, poly nors have already been computed. */
+ /* Same as #mesh_calc_modifiers.
+ * If using loop normals, poly normals have already been computed. */
BKE_mesh_ensure_normals_for_display(mesh_final);
/* Some modifiers, like data-transfer, may generate those data, we do not want to keep them,
- * as they are used by display code when available (i.e. even if autosmooth is disabled). */
+ * as they are used by display code when available (i.e. even if auto-smooth is disabled). */
if (CustomData_has_layer(&mesh_final->ldata, CD_NORMAL)) {
CustomData_free_layers(&mesh_final->ldata, CD_NORMAL, mesh_final->totloop);
}
diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c
index 705e5d56f9b..eff08db9f46 100644
--- a/source/blender/blenkernel/intern/dynamicpaint.c
+++ b/source/blender/blenkernel/intern/dynamicpaint.c
@@ -922,7 +922,7 @@ static void surface_freeUnusedData(DynamicPaintSurface *surface)
return;
}
- /* free bakedata if not active or surface is baked */
+ /* Free bake-data if not active or surface is baked. */
if (!(surface->flags & MOD_DPAINT_ACTIVE) ||
(surface->pointcache && surface->pointcache->flag & PTCACHE_BAKED)) {
free_bakeData(surface->data);
@@ -1071,7 +1071,7 @@ DynamicPaintSurface *dynamicPaint_createNewSurface(DynamicPaintCanvasSettings *c
BKE_modifier_path_init(
surface->image_output_path, sizeof(surface->image_output_path), "cache_dynamicpaint");
- /* Using ID_BRUSH i18n context, as we have no physics/dpaint one for now... */
+ /* Using ID_BRUSH i18n context, as we have no physics/dynamic-paint one for now. */
dynamicPaintSurface_setUniqueName(surface, CTX_DATA_(BLT_I18NCONTEXT_ID_BRUSH, "Surface"));
surface->effector_weights = BKE_effector_add_weights(NULL);
@@ -5067,7 +5067,7 @@ static void dynamic_paint_prepare_effect_cb(void *__restrict userdata,
/* if global gravity is enabled, add it too */
if (scene->physics_settings.flag & PHYS_GLOBAL_GRAVITY) {
- /* also divide by 10 to about match default grav
+ /* also divide by 10 to about match default gravity
* with default force strength (1.0). */
madd_v3_v3fl(forc,
scene->physics_settings.gravity,
@@ -5139,9 +5139,9 @@ static int dynamicPaint_prepareEffectStep(struct Depsgraph *depsgraph,
}
/* Get number of required steps using average point distance
- * so that just a few ultra close pixels won't increase substeps to max. */
+ * so that just a few ultra close pixels won't increase sub-steps to max. */
- /* adjust number of required substep by fastest active effect */
+ /* Adjust number of required sub-step by fastest active effect. */
if (surface->effect & MOD_DPAINT_EFFECT_DO_SPREAD) {
spread_speed = surface->spread_speed;
}
@@ -5811,7 +5811,7 @@ static void dynamic_paint_surface_pre_step_cb(void *__restrict userdata,
pPoint->state = DPAINT_PAINT_WET;
}
- /* in case of just dryed paint, just mix it to the dry layer and mark it empty */
+ /* In case of just dried paint, just mix it to the dry layer and mark it empty. */
else if (pPoint->state > 0) {
float f_color[4];
blendColors(pPoint->color, pPoint->color[3], pPoint->e_color, pPoint->e_color[3], f_color);
diff --git a/source/blender/blenkernel/intern/particle.cc b/source/blender/blenkernel/intern/particle.cc
index 296ef405da2..99dfd7fe138 100644
--- a/source/blender/blenkernel/intern/particle.cc
+++ b/source/blender/blenkernel/intern/particle.cc
@@ -3513,7 +3513,8 @@ void psys_cache_paths(ParticleSimulationData *sim, float cfra, const bool use_re
}
}
- /* lattices have to be calculated separately to avoid mixups between effector calculations */
+ /* Lattices have to be calculated separately to avoid mix-ups between effector calculations.
+ */
if (psys->lattice_deform_data) {
for (k = 0, ca = cache[p]; k <= segments; k++, ca++) {
BKE_lattice_deform_data_eval_co(
diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c
index b322a0a803d..83b5fd45d2f 100644
--- a/source/blender/blenkernel/intern/softbody.c
+++ b/source/blender/blenkernel/intern/softbody.c
@@ -2550,11 +2550,12 @@ static void softbody_swap_state(Object *ob, float *ppos, float *pvel)
}
#endif
-/* care for bodypoints taken out of the 'ordinary' solver step
+/**
+ * Care for body-points taken out of the 'ordinary' solver step
* because they are screwed to goal by bolts
* they just need to move along with the goal in time
* we need to adjust them on sub frame timing in solver
- * so now when frame is done .. put 'em to the position at the end of frame
+ * so now when frame is done .. put them to the position at the end of frame.
*/
static void softbody_apply_goalsnap(Object *ob)
{
diff --git a/source/blender/blenlib/BLI_offset_indices.hh b/source/blender/blenlib/BLI_offset_indices.hh
index 9685266e687..4ae2bde3705 100644
--- a/source/blender/blenlib/BLI_offset_indices.hh
+++ b/source/blender/blenlib/BLI_offset_indices.hh
@@ -70,7 +70,7 @@ template<typename T> class OffsetIndices {
}
/**
- * Return a subset of the offsets desribing the specified range of source elements.
+ * Return a subset of the offsets describing the specified range of source elements.
* This is a slice into the source ranges rather than the indexed elements described by the
* offset values.
*/
diff --git a/source/blender/bmesh/intern/bmesh_interp.c b/source/blender/bmesh/intern/bmesh_interp.c
index f96fc734fbc..16db91595ec 100644
--- a/source/blender/bmesh/intern/bmesh_interp.c
+++ b/source/blender/bmesh/intern/bmesh_interp.c
@@ -875,8 +875,8 @@ void BM_uv_map_ensure_select_and_pin_attrs(BMesh *bm)
{
const int nr_uv_layers = CustomData_number_of_layers(&bm->ldata, CD_PROP_FLOAT2);
for (int l = 0; l < nr_uv_layers; l++) {
- /* NOTE: you can't re-use the returnvalue of CustomData_get_layer_name() because adding layers
- * can invalidate that. */
+ /* NOTE: you can't re-use the return-value of #CustomData_get_layer_name()
+ * because adding layers can invalidate that. */
char name[MAX_CUSTOMDATA_LAYER_NAME];
BM_data_layer_ensure_named(
bm,
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 43a2e89b989..0cb89d94d41 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -2246,7 +2246,7 @@ void DRW_draw_render_loop_2d_ex(struct Depsgraph *depsgraph,
drw_engines_draw_scene();
- /* Fix 3D view being "laggy" on macos and win+nvidia. (See T56996, T61474) */
+ /* Fix 3D view being "laggy" on MACOS and MS-Windows+NVIDIA. (See T56996, T61474) */
if (GPU_type_matches_ex(GPU_DEVICE_ANY, GPU_OS_ANY, GPU_DRIVER_ANY, GPU_BACKEND_OPENGL)) {
GPU_flush();
}
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h
index 3526db5cb35..def080b267e 100644
--- a/source/blender/editors/include/ED_view3d.h
+++ b/source/blender/editors/include/ED_view3d.h
@@ -75,7 +75,8 @@ typedef struct ViewContext {
typedef struct ViewDepths {
unsigned short w, h;
- short x, y; /* only for temp use for sub-rects, added to region->winx/y */
+ /* only for temp use for sub-rectangles, added to `region->winx/winy`. */
+ short x, y;
float *depths;
double depth_range[2];
} ViewDepths;
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index cdc41ef2183..108f8e46966 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -394,7 +394,7 @@ typedef enum {
UI_B
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list