[Bf-blender-cvs] [ce528d02e10] master: Cleanup: spelling

Campbell Barton noreply at git.blender.org
Fri Mar 26 05:03:25 CET 2021


Commit: ce528d02e103776895ad9c60d9c3b0a3356f335b
Author: Campbell Barton
Date:   Fri Mar 26 14:49:16 2021 +1100
Branches: master
https://developer.blender.org/rBce528d02e103776895ad9c60d9c3b0a3356f335b

Cleanup: spelling

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

M	source/blender/blenkernel/intern/gpencil_geom.c
M	source/blender/editors/interface/interface.c
M	source/blender/io/gpencil/gpencil_io.h
M	source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
M	source/blender/io/gpencil/intern/gpencil_io_import_svg.cc
M	source/blender/io/gpencil/nanosvg/nanosvg.h

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

diff --git a/source/blender/blenkernel/intern/gpencil_geom.c b/source/blender/blenkernel/intern/gpencil_geom.c
index 5d8dd99b3ae..27c2d9e146b 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.c
+++ b/source/blender/blenkernel/intern/gpencil_geom.c
@@ -3663,7 +3663,7 @@ static int generate_perimeter_cap(const float point[4],
 
 /**
  * Calculate the perimeter (outline) of a stroke as list of tPerimeterPoint.
- * \param subdivisions: Number of subdivions for the start and end caps
+ * \param subdivisions: Number of subdivisions for the start and end caps
  * \return: list of tPerimeterPoint
  */
 static ListBase *gpencil_stroke_perimeter_ex(const bGPdata *gpd,
@@ -3710,7 +3710,7 @@ static ListBase *gpencil_stroke_perimeter_ex(const bGPdata *gpd,
   copy_v3_v3(first_next_pt, &first_next->x);
   copy_v3_v3(last_prev_pt, &last_prev->x);
 
-  /* edgecase if single point */
+  /* Edge-case if single point. */
   if (gps->totpoints == 1) {
     first_next_pt[0] += 1.0f;
     last_prev_pt[0] -= 1.0f;
@@ -3784,7 +3784,7 @@ static ListBase *gpencil_stroke_perimeter_ex(const bGPdata *gpd,
     negate_v2(vec_miter_right);
 
     float angle = dot_v2v2(vec_next, nvec_prev);
-    /* add two points if angle is close to beeing straight */
+    /* Add two points if angle is close to being straight. */
     if (fabsf(angle) < 0.0001f) {
       normalize_v2_length(nvec_prev, radius);
       normalize_v2_length(nvec_next, radius);
@@ -3910,7 +3910,7 @@ static ListBase *gpencil_stroke_perimeter_ex(const bGPdata *gpd,
 /**
  * Calculates the perimeter of a stroke projected from the view and
  * returns it as a new stroke.
- * \param subdivisions: Number of subdivions for the start and end caps
+ * \param subdivisions: Number of subdivisions for the start and end caps
  * \return: bGPDstroke pointer to stroke perimeter
  */
 bGPDstroke *BKE_gpencil_stroke_perimeter_from_view(struct RegionView3D *rv3d,
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 279239fcc65..29d26359c8b 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1817,9 +1817,9 @@ static void ui_but_validate(const uiBut *but)
 #endif
 
 /**
- * Check if the operator \a ot poll is successfull with the context given by \a but (optionally).
+ * Check if the operator \a ot poll is successful with the context given by \a but (optionally).
  * \param but: The button that might store context. Can be NULL for convenience (e.g. if there is
- *             no button to take context from, but we still want to poll the operator).
+ * no button to take context from, but we still want to poll the operator).
  */
 bool ui_but_context_poll_operator(bContext *C, wmOperatorType *ot, const uiBut *but)
 {
diff --git a/source/blender/io/gpencil/gpencil_io.h b/source/blender/io/gpencil/gpencil_io.h
index f4b2e59f8c5..24b13479359 100644
--- a/source/blender/io/gpencil/gpencil_io.h
+++ b/source/blender/io/gpencil/gpencil_io.h
@@ -78,7 +78,7 @@ typedef enum eGpencilExportSelect {
   GP_EXPORT_VISIBLE = 2,
 } eGpencilExportSelect;
 
-/* Framerange to be exported. */
+/** Frame-range to be exported. */
 typedef enum eGpencilExportFrame {
   GP_EXPORT_FRAME_ACTIVE = 0,
   GP_EXPORT_FRAME_SELECTED = 1,
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
index 89584cd242f..d5d519dba93 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
@@ -396,7 +396,7 @@ void GpencilExporterSVG::color_string_set(bGPDlayer *gpl,
  * \param node: Parent node
  * \param x: X location
  * \param y: Y location
- * \param width: width of the recntagle
+ * \param width: width of the rectangle
  * \param height: Height of the rectangle
  * \param thickness: Thickness of the line
  * \param hexcolor: Color of the line
@@ -427,7 +427,7 @@ void GpencilExporterSVG::add_rect(pugi::xml_node node,
  * \param x: X location
  * \param y: Y location
  * \param text: Text to include
- * \param size: Size of th etext
+ * \param size: Size of the text
  * \param hexcolor: Color of the text
  */
 void GpencilExporterSVG::add_text(pugi::xml_node node,
diff --git a/source/blender/io/gpencil/intern/gpencil_io_import_svg.cc b/source/blender/io/gpencil/intern/gpencil_io_import_svg.cc
index 7f450477ac2..171357b6c77 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_import_svg.cc
+++ b/source/blender/io/gpencil/intern/gpencil_io_import_svg.cc
@@ -196,10 +196,10 @@ void GpencilImporterSVG::create_stroke(bGPdata *gpd,
       pt->strength = shape->opacity;
       pt->pressure = 1.0f;
       pt->z = 0.0f;
-      /* TODO: (antoniov) Can be improved loading curve data instead of loading strokes. */
+      /* TODO(antoniov): Can be improved loading curve data instead of loading strokes. */
       interp_v2_v2v2v2v2_cubic(&pt->x, &p[0], &p[2], &p[4], &p[6], a);
 
-      /* Scale from milimeters. */
+      /* Scale from millimeters. */
       mul_v3_fl(&pt->x, 0.001f);
       mul_m4_v3(matrix, &pt->x);
 
diff --git a/source/blender/io/gpencil/nanosvg/nanosvg.h b/source/blender/io/gpencil/nanosvg/nanosvg.h
index 1009d684f7c..6db32e9f40a 100644
--- a/source/blender/io/gpencil/nanosvg/nanosvg.h
+++ b/source/blender/io/gpencil/nanosvg/nanosvg.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-14 Mikko Mononen memon at inside.org
+ * Copyright (c) 2013-14 `Mikko Mononen <memon at inside.org>`
  *
  * This software is provided 'as-is', without any express or implied
  * warranty.  In no event will the authors be held liable for any damages
@@ -459,9 +459,9 @@ typedef struct NSVGparser {
   float dpi;
   char pathFlag;
   char defsFlag;
-  /** Blender breadscrum for layers. */
+  /** Blender breadcrumb for layers. */
   char breadcrumb[NSVG_MAX_BREADCRUMB][64];
-  /** Blender number of elements in breadscrum. */
+  /** Blender number of elements in breadcrumb. */
   int breadcrumb_len;
 } NSVGparser;



More information about the Bf-blender-cvs mailing list