Cleanup: Grammar: "Allow to" vs gerund

In cases where "Allow" is followed by an infinitive, a noun needs
to directly follow it. But it makes more sense to follow it with a
gerund instead.
This commit is contained in:
Hans Goudey 2020-11-18 16:14:48 -05:00
parent 038828f49a
commit 8f30a88e63
9 changed files with 13 additions and 13 deletions

View File

@ -1364,7 +1364,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_settings(Panel, View3DPanel, GreasePen
row_mat.template_ID(gp_settings, "material", live_icon=True)
else:
row_mat.template_ID(context.active_object, "active_material", live_icon=True)
row_mat.enabled = False # will otherwise allow to change material in active slot
row_mat.enabled = False # will otherwise allow changing material in active slot
row.prop(gp_settings, "use_material_pin", text="")

View File

@ -4733,7 +4733,7 @@ static bool constructive_modifier_is_deform_modified(ModifierData *md)
if (md->type == eModifierType_MeshSequenceCache) {
/* NOTE: Not ideal because it's unknown whether topology changes or not.
* This will be detected later, so by assuming it's only deformation
* going on here we allow to bake deform-only mesh to Alembic and have
* going on here we allow baking deform-only mesh to Alembic and have
* proper motion blur after that.
*/
return true;

View File

@ -501,7 +501,7 @@ void BM_mesh_normals_update(BMesh *bm)
{
float(*edgevec)[3] = MEM_mallocN(sizeof(*edgevec) * bm->totedge, __func__);
/* Parallel mempool iteration does not allow to generate indices inline anymore... */
/* Parallel mempool iteration does not allow generating indices inline anymore... */
BM_mesh_elem_index_ensure(bm, (BM_EDGE | BM_FACE));
/* calculate all face normals */

View File

@ -80,13 +80,13 @@ BMEdge *BM_edge_rotate(BMesh *bm, BMEdge *e, const bool ccw, const short check_f
/** Flags for #BM_edge_rotate */
enum {
/** Disallow to rotate when the new edge matches an existing one. */
/** Disallow rotating when the new edge matches an existing one. */
BM_EDGEROT_CHECK_EXISTS = (1 << 0),
/** Overrides existing check, if the edge already, rotate and merge them. */
BM_EDGEROT_CHECK_SPLICE = (1 << 1),
/** Disallow creating bow-tie, concave or zero area faces */
BM_EDGEROT_CHECK_DEGENERATE = (1 << 2),
/** Disallow to rotate into ugly topology. */
/** Disallow rotating into ugly topology. */
BM_EDGEROT_CHECK_BEAUTY = (1 << 3),
};

View File

@ -240,7 +240,7 @@
* - SMAA::detectMSAAOrder and
* - SMAA::msaaReorder
*
* These functions allow to match the standard multisample patterns by
* These functions allow matching the standard multisample patterns by
* detecting the subsample order for a specific GPU, and reordering
* them appropriately.
*
@ -1258,8 +1258,8 @@ float4 SMAABlendingWeightCalculationPS(float2 texcoord,
SMAATexturePass2D(edgesTex), SMAATexturePass2D(searchTex), offset[0].zw, offset[2].y);
d.y = coords.z;
// We want the distances to be in pixel units (doing this here allow to
// better interleave arithmetic and memory accesses):
// We want the distances to be in pixel units (doing this here allows
// better interleaving of arithmetic and memory accesses):
d = abs(round(mad(SMAA_RT_METRICS.zz, d, -pixcoord.xx)));
// SMAAArea below needs a sqrt, as the areas texture is compressed

View File

@ -430,7 +430,7 @@ int insert_bezt_fcurve(FCurve *fcu, const BezTriple *bezt, eInsertKeyFlags flag)
}
}
}
/* keyframing modes allow to not replace keyframe */
/* Keyframing modes allow not replacing the keyframe. */
else if ((flag & INSERTKEY_REPLACE) == 0) {
/* insert new - if we're not restricted to replacing keyframes only */
BezTriple *newb = MEM_callocN((fcu->totvert + 1) * sizeof(BezTriple), "beztriple");

View File

@ -416,7 +416,7 @@ void UI_popover_end(bContext *C, uiPopover *pup, wmKeyMap *keymap)
pup->window = window;
/* TODO(campbell): we may want to make this configurable.
* The begin/end stype of calling popups doesn't allow to 'can_refresh' to be set.
* The begin/end stype of calling popups doesn't allow 'can_refresh' to be set.
* For now close this style of popovers when accessed. */
UI_block_flag_disable(pup->block, UI_BLOCK_KEEP_OPEN);

View File

@ -72,7 +72,7 @@ static bool ptcache_poll(bContext *C)
}
if (ID_IS_LINKED(id) && (point_cache->flag & PTCACHE_DISK_CACHE) == false) {
CTX_wm_operator_poll_msg_set(C, "Linked data-blocks do not allow to edit caches");
CTX_wm_operator_poll_msg_set(C, "Linked data-blocks do not allow editing caches");
return false;
}
@ -92,7 +92,7 @@ static bool ptcache_add_remove_poll(bContext *C)
if (ID_IS_OVERRIDE_LIBRARY_REAL(id) || ID_IS_LINKED(id)) {
CTX_wm_operator_poll_msg_set(
C, "Linked or library override data-blocks do not allow to add or remove caches");
C, "Linked or library override data-blocks do not allow adding or removing caches");
return false;
}

View File

@ -1281,7 +1281,7 @@ void NODE_OT_find_node(wmOperatorType *ot)
{
/* identifiers */
ot->name = "Find Node";
ot->description = "Search for named node and allow to select and activate it";
ot->description = "Search for a node by name and focus and select it";
ot->idname = "NODE_OT_find_node";
/* api callbacks */