diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-26 06:49:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-26 06:55:55 +0300 |
commit | ce528d02e103776895ad9c60d9c3b0a3356f335b (patch) | |
tree | 33aae5736e9769722f0d1272bddc508f49495184 /source | |
parent | dda02a448a38a5f5f4b0df1738bec3b158ce739f (diff) |
Cleanup: spelling
Diffstat (limited to 'source')
6 files changed, 14 insertions, 14 deletions
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@inside.org + * Copyright (c) 2013-14 `Mikko Mononen <memon@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; |