Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2021-06-10 17:00:31 +10:00
parent 4d4608363c
commit b669fd376a
6 changed files with 13 additions and 9 deletions

View file

@ -355,7 +355,7 @@ GVArrayPtr Spline::interpolate_to_evaluated_points(GSpan data) const
/**
* Sample any input data with a value for each evaluated point (already interpolated to evaluated
* points) to arbitrary parameters in betwen the evaluated points. The interpolation is quite
* points) to arbitrary parameters in between the evaluated points. The interpolation is quite
* simple, but this handles the cyclic and end point special cases.
*/
void Spline::sample_based_on_index_factors(const GVArray &src,

View file

@ -168,7 +168,7 @@ ViewLayer *DEG_get_evaluated_view_layer(const Depsgraph *graph)
const deg::Depsgraph *deg_graph = reinterpret_cast<const deg::Depsgraph *>(graph);
Scene *scene_cow = DEG_get_evaluated_scene(graph);
if (scene_cow == nullptr) {
return nullptr; /* Happens with new, not-yet-built/evaluated graphes. */
return nullptr; /* Happens with new, not-yet-built/evaluated graphs. */
}
/* Do name-based lookup. */
/* TODO(sergey): Can this be optimized? */

View file

@ -2779,7 +2779,7 @@ void GPENCIL_OT_dissolve(wmOperatorType *ot)
/* Poll callback for snap operators */
/* NOTE: For now, we only allow these in the 3D view, as other editors do not
* define a cursor or gridstep which can be used
* define a cursor or grid-step which can be used.
*/
static bool gpencil_snap_poll(bContext *C)
{

View file

@ -300,7 +300,7 @@ typedef struct ProjPaintState {
/** Calculated from screenMin & screenMax. */
float screen_width;
float screen_height;
/** from the carea or from the projection render. */
/** From the area or from the projection render. */
int winx, winy;
/* options for projection painting */

View file

@ -154,7 +154,9 @@ void OUTLINER_OT_highlight_update(wmOperatorType *ot)
/** \name Toggle Open/Closed Operator
* \{ */
/* Open or close a tree element, optionally toggling all children recursively */
/**
* Open or close a tree element, optionally toggling all children recursively.
*/
void outliner_item_openclose(SpaceOutliner *space_outliner,
TreeElement *te,
bool open,
@ -1599,8 +1601,10 @@ void OUTLINER_OT_show_one_level(wmOperatorType *ot)
/** \name Show Hierarchy Operator
* \{ */
/* Helper function for tree_element_shwo_hierarchy() -
* recursively checks whether subtrees have any objects. */
/**
* Helper function for #tree_element_shwo_hierarchy() -
* recursively checks whether subtrees have any objects.
*/
static int subtree_has_objects(ListBase *lb)
{
LISTBASE_FOREACH (TreeElement *, te, lb) {

View file

@ -233,8 +233,8 @@ void gmp_free(void *ptr, size_t size)
}
/**
* Use TBB's scalable_allocator on Windows.
* TBBmalloc correctly captures all allocations already,
* however, GMP is built with mingw since it doesn't build with msvc,
* `TBBmalloc` correctly captures all allocations already,
* however, GMP is built with MINGW since it doesn't build with MSVC,
* which TBB has issues hooking into automatically.
*/
void gmp_blender_init_allocator()