Cleanup: spelling

This commit is contained in:
Campbell Barton 2019-12-11 10:56:14 +11:00
parent e0fbea9c0d
commit 63d521432e
Notes: blender-bot 2023-02-14 02:58:19 +01:00
Referenced by issue #72364, Sculpt Mode RMB context menu returns an error
8 changed files with 12 additions and 13 deletions

View File

@ -59,8 +59,7 @@ struct CDStreamConfig {
bool pack_uvs;
/* TODO(kevin): might need a better way to handle adding and/or updating
* custom datas such that it updates the custom data holder and its pointers
* properly. */
* custom data such that it updates the custom data holder and its pointers properly. */
Mesh *mesh;
void *(*add_customdata_cb)(Mesh *mesh, const char *name, int data_type);

View File

@ -308,7 +308,7 @@ static void CurveProfile_build_supports(CurveProfile *profile)
}
/**
* Puts the widget's control points in a step pattern.
* Puts the widgets control points in a step pattern.
* Uses vector handles for each point.
*/
static void CurveProfile_build_steps(CurveProfile *profile)

View File

@ -164,8 +164,8 @@ static void eevee_cache_finish(void *vedata)
uint tot_samples = scene_eval->eevee.taa_render_samples;
if (tot_samples == 0) {
/* use a high number of samples so the outputs accum buffers
* will have the highest possible precision */
/* Use a high number of samples so the outputs accumulation buffers
* will have the highest possible precision. */
tot_samples = 1024;
}
EEVEE_renderpasses_output_init(sldata, vedata, tot_samples);

View File

@ -39,10 +39,10 @@
*
* This technique has one major shortcoming compared to MSAA:
* - It handles (initial) partial visibility poorly (because of single sample). This makes
* overlaping / crossing wires a bit too thin at their intersection.
* overlapping / crossing wires a bit too thin at their intersection.
* Wireframe meshes overlaid over solid meshes can have half of the edge missing due to
* z-fighting (this has workaround).
* Another manifestation of this, is fickering of really dense wireframe if using small
* Another manifestation of this, is flickering of really dense wireframe if using small
* line thickness (also has workaround).
*
* The pros of this approach are many:

View File

@ -170,7 +170,7 @@ static void motion_path_cache(OVERLAY_Data *vedata,
DRW_shgroup_call_range(grp, mpath_batch_points_get(mpath), start_index, len);
}
/* Draw frame numbers at each framestep value */
/* Draw frame numbers at each frame-step value. */
if (show_frame_no || (show_keyframes_no && show_keyframes)) {
int i;
uchar col[4], col_kf[4];
@ -193,8 +193,8 @@ static void motion_path_cache(OVERLAY_Data *vedata,
else if (show_frame_no) {
bMotionPathVert *mpvP = (mpv - stepsize);
bMotionPathVert *mpvN = (mpv + stepsize);
/* Only draw framenum if several consecutive highlighted points don't occur on same point.
*/
/* Only draw frame number if several consecutive highlighted points
* don't occur on same point. */
if ((equals_v3v3(mpv->co, mpvP->co) == 0) || (equals_v3v3(mpv->co, mpvN->co) == 0)) {
numstr_len = BLI_snprintf(numstr, sizeof(numstr), " %d", frame);
DRW_text_cache_add(dt, mpv->co, numstr, numstr_len, 0, 0, txt_flag, col);

View File

@ -371,7 +371,7 @@ static uiTooltipData *ui_tooltip_data_from_tool(bContext *C, uiBut *but, bool is
RNA_string_get(but->opptr, "name", tool_id);
BLI_assert(tool_id[0] != '\0');
/* When false, we're in a diffrent space type to the tool being set.
/* When false, we're in a different space type to the tool being set.
* Needed for setting the fallback tool from the properties space.
*
* If we drop the hard coded 3D-view in properties hack, we can remove this check. */

View File

@ -319,7 +319,7 @@ int textview_draw(TextViewContext *tvc,
xy[1] = y_orig;
/* Offset and clamp the results,
* clamping so moving the cursor out of the bounds doesn't weap onto the other lines. */
* clamping so moving the cursor out of the bounds doesn't wrap onto the other lines. */
const int mval[2] = {
(mval_init[0] == INT_MAX) ?
INT_MAX :

View File

@ -282,7 +282,7 @@ void IMB_rect_crop(ImBuf *ibuf, const rcti *crop)
}
/**
* Re-alloc buffers at a new size.
* Re-allocate buffers at a new size.
*/
static void rect_realloc_4bytes(void **buf_p, const uint size[2])
{