diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-19 00:14:48 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-19 00:14:48 +0300 |
commit | 8f30a88e63fe2c86aa004f302e6f3bd4c172ea39 (patch) | |
tree | e0bad5e526554dd254fa14c9474cbc83b72b7588 /source | |
parent | 038828f49a4f50901684a059fc990626c13e6949 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh.c | 2 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mods.h | 4 | ||||
-rw-r--r-- | source/blender/draw/intern/shaders/common_smaa_lib.glsl | 6 | ||||
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_region_popover.c | 2 | ||||
-rw-r--r-- | source/blender/editors/physics/physics_pointcache.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_select.c | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 5f8406e7d37..430d28f67c2 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -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; diff --git a/source/blender/bmesh/intern/bmesh_mesh.c b/source/blender/bmesh/intern/bmesh_mesh.c index 1393edfe8a2..634db9276a6 100644 --- a/source/blender/bmesh/intern/bmesh_mesh.c +++ b/source/blender/bmesh/intern/bmesh_mesh.c @@ -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 */ diff --git a/source/blender/bmesh/intern/bmesh_mods.h b/source/blender/bmesh/intern/bmesh_mods.h index 46186306fec..7491c309754 100644 --- a/source/blender/bmesh/intern/bmesh_mods.h +++ b/source/blender/bmesh/intern/bmesh_mods.h @@ -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), }; diff --git a/source/blender/draw/intern/shaders/common_smaa_lib.glsl b/source/blender/draw/intern/shaders/common_smaa_lib.glsl index bd6e8436022..78a62c6ae7d 100644 --- a/source/blender/draw/intern/shaders/common_smaa_lib.glsl +++ b/source/blender/draw/intern/shaders/common_smaa_lib.glsl @@ -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 diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index 3fb707078b8..09c33c48170 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -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"); diff --git a/source/blender/editors/interface/interface_region_popover.c b/source/blender/editors/interface/interface_region_popover.c index 1a9a663f94e..a9f72233cb1 100644 --- a/source/blender/editors/interface/interface_region_popover.c +++ b/source/blender/editors/interface/interface_region_popover.c @@ -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); diff --git a/source/blender/editors/physics/physics_pointcache.c b/source/blender/editors/physics/physics_pointcache.c index f0cf1f2fbf9..1d5903bf417 100644 --- a/source/blender/editors/physics/physics_pointcache.c +++ b/source/blender/editors/physics/physics_pointcache.c @@ -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; } diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c index 5f3047fbdc2..5060ac0db8a 100644 --- a/source/blender/editors/space_node/node_select.c +++ b/source/blender/editors/space_node/node_select.c @@ -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 */ |