Cleanup: spelling in comments

This commit is contained in:
2021-09-23 15:02:10 +10:00
parent bf948b2cef
commit 754d56dcc1
11 changed files with 15 additions and 15 deletions

View File

@@ -524,7 +524,7 @@ void BlenderGPUDisplay::do_draw(const GPUDisplayParams &params)
const float zoomed_width = params.size.x * zoom_.x;
const float zoomed_height = params.size.y * zoom_.y;
if (texture_.width != params.size.x || texture_.height != params.size.y) {
/* Resolution divider is different from 1, force enarest interpolation. */
/* Resolution divider is different from 1, force nearest interpolation. */
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
}
else if (zoomed_width - params.size.x > 0.5f || zoomed_height - params.size.y > 0.5f) {

View File

@@ -244,7 +244,7 @@ static void foreach_sliced_buffer_params(const vector<unique_ptr<PathTraceWork>>
const int slice_height = max(lround(height * weight), 1);
/* Disallow negative values to deal with situations when there are more compute devices than
* scanlines. */
* scan-lines. */
const int remaining_height = max(0, height - current_y);
BufferParams slide_params = buffer_params;

View File

@@ -104,7 +104,7 @@ class PathTraceWork {
* - Copies work's render buffer to its device. */
void copy_from_render_buffers(const RenderBuffers *render_buffers);
/* Special version of the `copy_from_render_buffers()` which only copies denosied passes from the
/* Special version of the `copy_from_render_buffers()` which only copies denoised passes from the
* given render buffers, leaving rest of the passes.
*
* Same notes about device copying applies to this call as well. */

View File

@@ -31,7 +31,7 @@ class RenderWork {
int resolution_divider = 1;
/* Initialize render buffers.
* Includes steps like zero-ing the buffer on the device, and optional reading of pixels from the
* Includes steps like zeroing the buffer on the device, and optional reading of pixels from the
* baking target. */
bool init_render_buffers = false;

View File

@@ -46,7 +46,7 @@ class GPUDisplayParams {
* NOTE: Is not affected by the resolution divider. */
int2 full_size = make_int2(0, 0);
/* Effective vieport size.
/* Effective viewport size.
* In the case of border render, size of the border rectangle.
*
* NOTE: Is not affected by the resolution divider. */

View File

@@ -738,8 +738,8 @@ bool BKE_gpencil_stroke_stretch(bGPDstroke *gps,
sub_v3_v3v3(vec1, &gps->points[start_i].x, &gps->points[start_i + dir_i].x);
/* In general curvature = 1/radius. For the case without the
* weights introduced by #segment_influence, the calculation is
* curvature = delta angle/delta arclength = len_v3(total_angle) / overshoot_length */
* weights introduced by #segment_influence, the calculation is:
* `curvature = delta angle/delta arclength = len_v3(total_angle) / overshoot_length` */
float curvature = normalize_v3(total_angle) / overshoot_length;
/* Compensate for the weights powf(added_len, segment_influence). */
curvature /= powf(overshoot_length / fminf(overshoot_parameter, (float)j), segment_influence);

View File

@@ -237,7 +237,7 @@ static int mesh_nurbs_displist_to_mdata(const Curve *cu,
int a, b, ofs, vertcount, startvert, totvert = 0, totedge = 0, totloop = 0, totpoly = 0;
int p1, p2, p3, p4, *index;
const bool conv_polys = (
/* 2d polys are filled with DL_INDEX3 displists */
/* 2D polys are filled with #DispList.type == #DL_INDEX3. */
(CU_DO_2DFILL(cu) == false) ||
/* surf polys are never filled */
BKE_curve_type_get(cu) == OB_SURF);

View File

@@ -113,7 +113,7 @@ typedef struct KnifeColors {
uchar axis_extra[3];
} KnifeColors;
/* Knifetool Operator. */
/* Knife-tool Operator. */
typedef struct KnifeVert {
Object *ob;
uint base_index;
@@ -445,7 +445,7 @@ static void knifetool_draw_orientation_locking(const KnifeTool_OpData *kcd)
if (!compare_v3v3(kcd->prev.cage, kcd->curr.cage, KNIFE_FLT_EPSBIG)) {
float v1[3], v2[3];
/* This is causing buggyness when prev.cage and curr.cage are too close together. */
/* This is causing buggy behavior when `prev.cage` and `curr.cage` are too close together. */
knifetool_raycast_planes(kcd, v1, v2);
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
@@ -4100,7 +4100,7 @@ static void knifetool_init(bContext *C,
kcd->axis_string[0] = ' ';
kcd->axis_string[1] = '\0';
/* Initialise num input handling for angle snapping. */
/* Initialize number input handling for angle snapping. */
initNumInput(&kcd->num);
kcd->num.idx_max = 0;
kcd->num.val_flag[0] |= NUM_NO_NEGATIVE;
@@ -4151,7 +4151,7 @@ static void knifetool_exit_ex(KnifeTool_OpData *kcd)
MEM_freeN(kcd->cagecos);
knife_bvh_free(kcd);
/* Linehits cleanup. */
/* Line-hits cleanup. */
if (kcd->linehits) {
MEM_freeN(kcd->linehits);
}

View File

@@ -2082,7 +2082,7 @@ static int mixed_bones_object_selectbuffer_extended(ViewContext *vc,
/**
* \param has_bones: When true, skip non-bone hits, also allow bases to be used
* that are visible but not select-able,
* since you may be in pose mode with an unselect-able object.
* since you may be in pose mode with an un-selectable object.
*
* \return the active base or NULL.
*/

View File

@@ -461,7 +461,7 @@ void GPU_texture_generate_mipmap(GPUTexture *tex)
reinterpret_cast<Texture *>(tex)->generate_mipmap();
}
/* Copy a texture content to a similar texture. Only Mip 0 is copied. */
/* Copy a texture content to a similar texture. Only MIP 0 is copied. */
void GPU_texture_copy(GPUTexture *dst_, GPUTexture *src_)
{
Texture *src = reinterpret_cast<Texture *>(src_);

View File

@@ -674,7 +674,7 @@ static void wm_append_do(WMLinkAppendData *lapp_data,
CLOG_INFO(&LOG, 3, "Appended ID '%s' is proxified, keeping it linked...", id->name);
item->append_action = WM_APPEND_ACT_KEEP_LINKED;
}
/* Only re-use existing local ID for indirectly linked data, the ID explicitely selected by the
/* Only re-use existing local ID for indirectly linked data, the ID explicitly selected by the
* user we always fully append. */
else if (do_reuse_existing_id && existing_local_id != NULL &&
(item->append_tag & WM_APPEND_TAG_INDIRECT) != 0) {