[Bf-blender-cvs] [a771fdb5dc4] master: Cleanup: clang-format, spelling

Campbell Barton noreply at git.blender.org
Fri Aug 30 02:58:46 CEST 2019


Commit: a771fdb5dc4b868cda4a778bfc4f2670111815bf
Author: Campbell Barton
Date:   Fri Aug 30 10:52:39 2019 +1000
Branches: master
https://developer.blender.org/rBa771fdb5dc4b868cda4a778bfc4f2670111815bf

Cleanup: clang-format, spelling

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

M	intern/cycles/subd/subd_split.cpp
M	intern/cycles/subd/subd_split.h
M	intern/cycles/subd/subd_subpatch.h
M	source/blender/blenlib/intern/math_geom.c
M	source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c
M	source/blender/makesrna/intern/rna_object_force.c

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

diff --git a/intern/cycles/subd/subd_split.cpp b/intern/cycles/subd/subd_split.cpp
index 593bb92b0ff..1a8c182510c 100644
--- a/intern/cycles/subd/subd_split.cpp
+++ b/intern/cycles/subd/subd_split.cpp
@@ -91,7 +91,7 @@ int DiagSplit::T(Patch *patch, float2 Pstart, float2 Pend, bool recursive_resolv
 
   int tmin = (int)ceilf(Lsum / params.dicing_rate);
   int tmax = (int)ceilf((params.test_steps - 1) * Lmax /
-                       params.dicing_rate);  // XXX paper says N instead of N-1, seems wrong?
+                        params.dicing_rate);  // XXX paper says N instead of N-1, seems wrong?
   int res = max(tmax, 1);
 
   if (tmax - tmin > params.split_threshold) {
diff --git a/intern/cycles/subd/subd_split.h b/intern/cycles/subd/subd_split.h
index 0fc22872c62..773f4ddf120 100644
--- a/intern/cycles/subd/subd_split.h
+++ b/intern/cycles/subd/subd_split.h
@@ -44,7 +44,7 @@ class DiagSplit {
   deque<Edge> edges;
 
   float3 to_world(Patch *patch, float2 uv);
-  int T(Patch *patch, float2 Pstart, float2 Pend, bool recursive_resolve=false);
+  int T(Patch *patch, float2 Pstart, float2 Pend, bool recursive_resolve = false);
 
   void limit_edge_factor(int &T, Patch *patch, float2 Pstart, float2 Pend);
   void resolve_edge_factors(Subpatch &sub);
diff --git a/intern/cycles/subd/subd_subpatch.h b/intern/cycles/subd/subd_subpatch.h
index 4f0c4afee81..1a32b763cb8 100644
--- a/intern/cycles/subd/subd_subpatch.h
+++ b/intern/cycles/subd/subd_subpatch.h
@@ -128,21 +128,30 @@ class Subpatch {
 };
 
 struct Edge {
-  int T; /* Number of segments the edge will be diced into, see DiagSplit paper. */
+  /* Number of segments the edge will be diced into, see DiagSplit paper. */
+  int T;
+
+  /* top is edge adjacent to start, bottom is adjacent to end. */
+  Edge *top, *bottom;
 
-  Edge *top, *bottom; /* top is edge adjacent to start, bottom is adjacent to end. */
   int top_offset, bottom_offset;
   bool top_indices_decrease, bottom_indices_decrease;
 
   int start_vert_index;
   int end_vert_index;
-  int second_vert_index; /* Index of the second vert from this edges corner along the edge towards the next corner */
 
-  bool is_stitch_edge; /* Verties on edge are to be stitched. */
-  /* Key to match this edge with others to be stitched with. The ints in the pair are ordered stitching indices */
+  /* Index of the second vert from this edges corner along the edge towards the next corner. */
+  int second_vert_index;
+
+  /* Vertices on edge are to be stitched. */
+  bool is_stitch_edge;
+
+  /* Key to match this edge with others to be stitched with.
+   * The ints in the pair are ordered stitching indices */
   pair<int, int> stitch_edge_key;
 
-  int stitch_edge_T; /* Full T along edge (may be larger than T for edges split from ngon edges) */
+  /* Full T along edge (may be larger than T for edges split from ngon edges) */
+  int stitch_edge_T;
   int stitch_offset;
   int stitch_top_offset;
   int stitch_start_vert_index;
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index 0162f4552f0..fc65563b99d 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -1363,7 +1363,7 @@ bool isect_seg_seg_v2_simple(const float v1[2],
  * \returns intersection type:
  * - ISECT_LINE_LINE_COLINEAR: collinear.
  * - ISECT_LINE_LINE_EXACT: intersection at an endpoint of either.
- * - ISECT_LINE_LINE_CROSS: interection, not at an endpoint.
+ * - ISECT_LINE_LINE_CROSS: interaction, not at an endpoint.
  * - ISECT_LINE_LINE_NONE: no intersection.
  * Also returns lambda and mu in r_lambda and r_mu.
  */
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c
index 765967d8346..6b74f96ce31 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillattice.c
@@ -172,7 +172,7 @@ static bool isDisabled(GpencilModifierData *md, int UNUSED(userRenderParams))
   /* The object type check is only needed here in case we have a placeholder
    * object assigned (because the library containing the lattice is missing).
    *
-   * In other cases it should be impossible to have a type missmatch.
+   * In other cases it should be impossible to have a type mismatch.
    */
   return !mmd->object || mmd->object->type != OB_LATTICE;
 }
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 3251a549f62..430059c7a18 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -1319,7 +1319,11 @@ static void rna_def_field(BlenderRNA *brna)
        ICON_FORCE_CURVE,
        "Curve Guide",
        "Create a force along a curve object"},
-      {PFIELD_BOID, "BOID", ICON_FORCE_BOID, "Boid", "Create a force that acts as a boid's predators or target"},
+      {PFIELD_BOID,
+       "BOID",
+       ICON_FORCE_BOID,
+       "Boid",
+       "Create a force that acts as a boid's predators or target"},
       {PFIELD_TURBULENCE,
        "TURBULENCE",
        ICON_FORCE_TURBULENCE,



More information about the Bf-blender-cvs mailing list