[Bf-blender-cvs] [3249ab70ef6] master: Cleanup: spelling

Campbell Barton noreply at git.blender.org
Thu Apr 8 12:40:50 CEST 2021


Commit: 3249ab70ef6124e7fb910f987b0e033f42035bfa
Author: Campbell Barton
Date:   Thu Apr 8 16:20:22 2021 +1000
Branches: master
https://developer.blender.org/rB3249ab70ef6124e7fb910f987b0e033f42035bfa

Cleanup: spelling

===================================================================

M	intern/cycles/util/util_math.h
M	source/blender/blenlib/intern/BLI_dial_2d.c
M	source/blender/compositor/operations/COM_SMAAOperation.cc
M	source/blender/depsgraph/intern/depsgraph.h
M	source/blender/editors/sculpt_paint/paint_vertex.c
M	source/blender/editors/space_outliner/tree/tree_element_overrides.cc
M	source/blender/makesrna/intern/rna_object_force.c
M	source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc
M	source/blender/nodes/intern/node_exec.cc
M	source/blender/render/intern/render_result.c
M	source/blender/render/intern/render_types.h

===================================================================

diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h
index ad04340231e..c5996ebfcb6 100644
--- a/intern/cycles/util/util_math.h
+++ b/intern/cycles/util/util_math.h
@@ -788,7 +788,7 @@ ccl_device_inline float compare_floats(float a, float b, float abs_diff, int ulp
 }
 
 /* Calculate the angle between the two vectors a and b.
- * The usual approach acos(dot(a, b)) has severe precision issues for small angles,
+ * The usual approach `acos(dot(a, b))` has severe precision issues for small angles,
  * which are avoided by this method.
  * Based on "Mangled Angles" from https://people.eecs.berkeley.edu/~wkahan/Mindless.pdf
  */
diff --git a/source/blender/blenlib/intern/BLI_dial_2d.c b/source/blender/blenlib/intern/BLI_dial_2d.c
index 7363233d573..b5f1d7818cf 100644
--- a/source/blender/blenlib/intern/BLI_dial_2d.c
+++ b/source/blender/blenlib/intern/BLI_dial_2d.c
@@ -78,7 +78,7 @@ float BLI_dial_angle(Dial *dial, const float current_position[2])
     cosval = dot_v2v2(current_direction, dial->initial_direction);
     sinval = cross_v2v2(current_direction, dial->initial_direction);
 
-    /* clamp to avoid nans in acos */
+    /* clamp to avoid nans in #acos */
     angle = atan2f(sinval, cosval);
 
     /* change of sign, we passed the 180 degree threshold. This means we need to add a turn.
diff --git a/source/blender/compositor/operations/COM_SMAAOperation.cc b/source/blender/compositor/operations/COM_SMAAOperation.cc
index 38700c76f07..74807f281d7 100644
--- a/source/blender/compositor/operations/COM_SMAAOperation.cc
+++ b/source/blender/compositor/operations/COM_SMAAOperation.cc
@@ -384,7 +384,7 @@ void SMAABlendingWeightCalculationOperation::executePixel(float output[4],
     int bottom = searchYDown(x, y);
     int d1 = y - top, d2 = bottom - y;
 
-    /* Fetch the top ang bottom crossing edges: */
+    /* Fetch the top and bottom crossing edges: */
     int e1 = 0, e2 = 0;
     sample(m_imageReader, x - 1, top, c);
     if (c[1] > 0.0) {
diff --git a/source/blender/depsgraph/intern/depsgraph.h b/source/blender/depsgraph/intern/depsgraph.h
index d54aba8e25d..b87ce94709a 100644
--- a/source/blender/depsgraph/intern/depsgraph.h
+++ b/source/blender/depsgraph/intern/depsgraph.h
@@ -161,7 +161,7 @@ struct Depsgraph {
    * does not need any bases. */
   bool is_render_pipeline_depsgraph;
 
-  /* Notify editors about changes to IDs in this depsgrpah. */
+  /* Notify editors about changes to IDs in this depsgraph. */
   bool use_editors_update;
 
   /* Cached list of colliders/effectors for collections and the scene
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index f634e6ad026..daccc6f228a 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -2323,7 +2323,7 @@ static void wpaint_do_symmetrical_brush_actions(
   cache->symmetry = symm;
 
   if (me->editflag & ME_EDIT_MIRROR_VERTEX_GROUPS) {
-    /* We don't do any symmetry strokes when mirroing vertex groups. */
+    /* We don't do any symmetry strokes when mirroring vertex groups. */
     copy_v3_v3(cache->true_last_location, cache->true_location);
     cache->is_last_valid = true;
     return;
diff --git a/source/blender/editors/space_outliner/tree/tree_element_overrides.cc b/source/blender/editors/space_outliner/tree/tree_element_overrides.cc
index 3c561702a43..c5d254242c6 100644
--- a/source/blender/editors/space_outliner/tree/tree_element_overrides.cc
+++ b/source/blender/editors/space_outliner/tree/tree_element_overrides.cc
@@ -101,8 +101,8 @@ TreeElementOverridesProperty::TreeElementOverridesProperty(TreeElement &legacy_t
   BLI_assert(legacy_te.store_elem->type == TSE_LIBRARY_OVERRIDE);
 
   legacy_te.name = override_prop_.rna_path;
-  /* Abusing this for now, better way to do it is also pending current refacor of the whole tree
-   * code to use CPP... */
+  /* Abusing this for now, better way to do it is also pending current refactor of the whole tree
+   * code to use C++. */
   legacy_te.directdata = POINTER_FROM_UINT(override_data.is_rna_path_valid);
 }
 
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 488f177946a..eb7da0d0ce2 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -648,8 +648,8 @@ static void rna_FieldSettings_update(Main *UNUSED(bmain), Scene *UNUSED(scene),
       ob->pd->tex = NULL;
     }
 
-    /* In the case of specific forcefields that are using the EffectorData's normal, we need to
-     * rebuild mesh and bhvtree for SurfaceModifier to work correctly. */
+    /* In the case of specific force-fields that are using the #EffectorData's normal, we need to
+     * rebuild mesh and BVH-tree for #SurfaceModifier to work correctly. */
     if (ELEM(ob->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS) ||
         ob->pd->forcefield == PFIELD_GUIDE) {
       DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
diff --git a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc
index 3c8d2b5e924..fd95cdc81f7 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc
@@ -152,7 +152,7 @@ static void calculate_sphere_faces(MutableSpan<MLoop> loops,
   int loop_index = 0;
   int poly_index = 0;
 
-  /* Add the triangles conntected to the top vertex. */
+  /* Add the triangles connected to the top vertex. */
   const int first_vert_ring_index_start = 1;
   for (const int segment : IndexRange(segments)) {
     MPoly &poly = polys[poly_index++];
diff --git a/source/blender/nodes/intern/node_exec.cc b/source/blender/nodes/intern/node_exec.cc
index a52f7a48243..18403417af3 100644
--- a/source/blender/nodes/intern/node_exec.cc
+++ b/source/blender/nodes/intern/node_exec.cc
@@ -166,7 +166,7 @@ bNodeTreeExec *ntree_exec_begin(bNodeExecContext *context,
   int index;
   bNode **nodelist;
   int totnodes, n;
-  /* XXX texnodes have threading issues with muting, have to disable it there ... */
+  /* XXX: texture-nodes have threading issues with muting, have to disable it there. */
 
   /* ensure all sock->link pointers and node levels are correct */
   /* Using global main here is likely totally wrong, not sure what to do about that one though...
diff --git a/source/blender/render/intern/render_result.c b/source/blender/render/intern/render_result.c
index f73a200f3c6..74c96392d48 100644
--- a/source/blender/render/intern/render_result.c
+++ b/source/blender/render/intern/render_result.c
@@ -126,7 +126,7 @@ void render_result_free(RenderResult *rr)
   MEM_freeN(rr);
 }
 
-/* version that's compatible with fullsample buffers */
+/** Version that's compatible with full-sample buffers. */
 void render_result_free_list(ListBase *lb, RenderResult *rr)
 {
   RenderResult *rrnext;
diff --git a/source/blender/render/intern/render_types.h b/source/blender/render/intern/render_types.h
index 0488bf6e87a..9f399971049 100644
--- a/source/blender/render/intern/render_types.h
+++ b/source/blender/render/intern/render_types.h
@@ -79,7 +79,7 @@ struct Render {
   RenderResult *result;
   /* if render with single-layer option, other rendered layers are stored here */
   RenderResult *pushedresult;
-  /* a list of RenderResults, for fullsample */
+  /** A list of #RenderResults, for full-samples. */
   ListBase fullresult;
   /* read/write mutex, all internal code that writes to re->result must use a
    * write lock, all external code must use a read lock. internal code is assumed



More information about the Bf-blender-cvs mailing list