Cleanup: spelling

This commit is contained in:
Campbell Barton 2021-03-26 14:49:16 +11:00
parent dda02a448a
commit ce528d02e1
6 changed files with 14 additions and 14 deletions

View File

@ -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,

View File

@ -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)
{

View File

@ -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,

View File

@ -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,

View File

@ -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);

View File

@ -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;