diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-11 06:19:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-11 06:19:09 +0300 |
commit | 0c0f972e86a2e38912114c5333f23f9effd37a3b (patch) | |
tree | 71696757113b8347d991b733bca6912ec883fda0 /source/blender/editors/sculpt_paint | |
parent | acd46870630a4c968d5eebde2b1b34cf22cc3c77 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 8 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_boundary.c | 23 |
2 files changed, 17 insertions, 14 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index a4101bdd89f..88998d5063d 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -1296,8 +1296,8 @@ static bool paint_cursor_context_init(bContext *C, pcontext->zoomx = max_ff(zoomx, zoomy); pcontext->final_radius = (BKE_brush_size_get(pcontext->scene, pcontext->brush) * zoomx); - /* There is currently no way to check if the direction is invertex before starting the stroke, so - * this does not reflect the state of the brush in the UI. */ + /* There is currently no way to check if the direction is inverted before starting the stroke, + * so this does not reflect the state of the brush in the UI. */ if (((pcontext->ups->draw_inverted == 0) ^ ((pcontext->brush->flag & BRUSH_DIR_IN) == 0)) && BKE_brush_sculpt_has_secondary_color(pcontext->brush)) { copy_v3_v3(pcontext->outline_col, pcontext->brush->sub_col); @@ -1549,8 +1549,8 @@ static void paint_cursor_draw_3d_view_brush_cursor_inactive(PaintCursorContext * { Brush *brush = pcontext->brush; - /* 2D fallof is better represented with the default 2D cursor, there is no need to draw anything - * else. */ + /* 2D falloff is better represented with the default 2D cursor, + * there is no need to draw anything else. */ if (brush->falloff_shape == PAINT_FALLOFF_SHAPE_TUBE) { paint_draw_legacy_3D_view_brush_cursor(pcontext); return; diff --git a/source/blender/editors/sculpt_paint/sculpt_boundary.c b/source/blender/editors/sculpt_paint/sculpt_boundary.c index c6ed0701704..a368214cb0b 100644 --- a/source/blender/editors/sculpt_paint/sculpt_boundary.c +++ b/source/blender/editors/sculpt_paint/sculpt_boundary.c @@ -161,8 +161,10 @@ static void sculpt_boundary_preview_edge_add(SculptBoundary *bdata, const int v1 } }; -/* This funcion is used to check where the propagation should stop when calculating the boundary, - * as well as to check if the initial vertex is valid. */ +/** + * This function is used to check where the propagation should stop when calculating the boundary, + * as well as to check if the initial vertex is valid. + */ static bool sculpt_boundary_is_vertex_in_editable_boundary(SculptSession *ss, const int initial_vertex) { @@ -178,14 +180,14 @@ static bool sculpt_boundary_is_vertex_in_editable_boundary(SculptSession *ss, } SCULPT_VERTEX_NEIGHBORS_ITER_END(ni); - /* Corners are ambiguous as it can't be decied which boundary should be active. The flood fill + /* Corners are ambiguous as it can't be decide which boundary should be active. The flood fill * should also stop at corners. */ if (neighbor_count <= 2) { return false; } - /* Non manifold geomery in the mesh boundary. The deformation result will be unpredictable and - * not very useful. */ + /* Non manifold geometry in the mesh boundary. + * The deformation result will be unpredictable and not very useful. */ if (boundary_vertex_count > 2) { return false; } @@ -266,11 +268,12 @@ static void sculpt_boundary_indices_init(SculptSession *ss, BLI_gset_free(included_vertices, NULL); } -/* This functions initializes all data needed to calcualte falloffs and deformation from the - * boundary into the mesh into a SculptBoundaryEditInfo array. This includes how many steps are +/** + * This functions initializes all data needed to calculate falloffs and deformation from the + * boundary into the mesh into a #SculptBoundaryEditInfo array. This includes how many steps are * needed to go from a boundary vertex to an interior vertex and which vertex of the boundary is - * the closest one. */ - + * the closest one. + */ static void sculpt_boundary_edit_data_init(SculptSession *ss, SculptBoundary *bdata, const int initial_vertex, @@ -399,7 +402,7 @@ static void sculpt_boundary_edit_data_init(SculptSession *ss, BLI_gsqueue_free(next_iteration); } -/* This functions assings a falloff factor to each one of the SculptBoundaryEditInfo structs based +/* This functions assigns a falloff factor to each one of the SculptBoundaryEditInfo structs based * on the brush curve and its propagation steps. The falloff goes from the boundary into the mesh. */ static void sculpt_boundary_falloff_factor_init(SculptSession *ss, |