Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2023-08-30 10:57:12 +10:00
parent 4ea5feb7d2
commit 3d607be572
10 changed files with 25 additions and 16 deletions

View File

@ -135,7 +135,7 @@ void ANIM_armature_bonecoll_assign_active(const struct bArmature *armature,
* Reconstruct the bone collection memberships, based on the bone runtime data.
*
* This is needed to transition out of armature edit mode. That removes all bones, and
* recreates them from the editbones.
* recreates them from the edit-bones.
*/
void ANIM_armature_bonecoll_reconstruct(struct bArmature *armature);

View File

@ -272,7 +272,7 @@ bool ANIM_armature_bonecoll_unassign(BoneCollection *bcoll, Bone *bone)
{
bool was_found = false;
/* Remove membersip from collection. */
/* Remove membership from collection. */
LISTBASE_FOREACH_MUTABLE (BoneCollectionMember *, member, &bcoll->bones) {
if (member->bone == bone) {
BLI_freelinkN(&bcoll->bones, member);
@ -342,6 +342,7 @@ static bool any_bone_collection_visible(const ListBase /*BoneCollectionRef*/ *co
/* TODO: these two functions were originally implemented for armature layers, hence the armature
* parameters. These should be removed at some point. */
bool ANIM_bonecoll_is_visible(const struct bArmature * /*armature*/, const struct Bone *bone)
{
return any_bone_collection_visible(&bone->runtime.collections);

View File

@ -2230,7 +2230,7 @@ static bool customdata_merge_internal(const CustomData *source,
const int src_layer_flag = src_layer.flag;
if (type != last_type) {
/* Dont exceed layer count on destination. */
/* Don't exceed layer count on destination. */
const int layernum_dst = CustomData_number_of_layers(dest, type);
current_type_layer_count = layernum_dst;
max_current_type_layer_count = CustomData_layertype_layers_max(type);

View File

@ -76,7 +76,7 @@ bool BM_mesh_validate(BMesh *bm)
ERRMSG("edge %d: duplicate index: %d", i, BM_elem_index_get(e->v1));
}
/* build edgehash at the same time */
/* Build edge-hash at the same time. */
edge_hash.add_or_modify(
{BM_elem_index_get(e->v1), BM_elem_index_get(e->v2)},
[&](BMEdge **value) { *value = e; },

View File

@ -1273,8 +1273,9 @@ float4 utility_tx_sample_lut(sampler2DArray util_tx, float2 uv, float layer)
/* Sample LTC or BSDF LUTs with `cos_theta` and `roughness` as inputs. */
float4 utility_tx_sample_lut(sampler2DArray util_tx, float cos_theta, float roughness, float layer)
{
/* LUTs are parametrized by `sqrt(1.0 - cos_theta)` for more precision near grazing incidence. */
vec2 coords = vec2(roughness, sqrt(clamp(1.0 - cos_theta, 0.0, 1.0)));
/* LUTs are parameterized by `sqrt(1.0 - cos_theta)` for more precision near grazing incidence.
*/
vec2 coords = vec2(roughness, sqrt(saturate(1.0 - cos_theta)));
return utility_tx_sample_lut(util_tx, coords, layer);
}

View File

@ -434,10 +434,12 @@ void ED_armature_edit_transform_mirror_update(Object *obedit)
/** \name Armature EditMode Conversions
* \{ */
/** Copy the bone collection membership info from the bones to the ebones.
/**
* Copy the bone collection membership info from the bones to the edit-bones.
*
* Operations on eBones (like subdividing, extruding, etc.) will have to deal
* with collection assignments of those eBones as well. */
* Operations on edit-bones (like subdividing, extruding, etc.) will have to deal
* with collection assignments of those edit-bones as well.
*/
static void copy_bonecollection_membership(EditBone *eBone, const Bone *bone)
{
BLI_assert(BLI_listbase_is_empty(&eBone->bone_collections));

View File

@ -1014,7 +1014,8 @@ inline float2x2 operator-(float2x2 a)
/* SSBO Vertex Fetch Mode. */
#ifdef MTL_SSBO_VERTEX_FETCH
/* Enabled when geometry is passed via raw buffer bindings, rather than using
/**
* Enabled when geometry is passed via raw buffer bindings, rather than using
* vertex assembly in the vertex-descriptor.
*
* To describe the layout of input attribute data, we will generate uniforms (defaulting to 0)
@ -1101,13 +1102,13 @@ inline float degrees(float rad)
#define select(A, B, C) mix(A, B, C)
/* Type conversions and type truncations. */
/* Type conversions and type truncation. */
inline float4 to_float4(float3 val)
{
return float4(val, 1.0);
}
/* Type conversions and type truncations (Utility Functions). */
/* Type conversions and type truncation (Utility Functions). */
inline float3x3 mat4_to_mat3(float4x4 matrix)
{
return float3x3(matrix[0].xyz, matrix[1].xyz, matrix[2].xyz);

View File

@ -98,12 +98,12 @@ class VKFrameBuffer : public FrameBuffer {
int color_attachment,
VkImageLayout requested_layout);
/**
* Ensure that the size of the framebuffer matches the first attachment resolution.
* Ensure that the size of the frame-buffer matches the first attachment resolution.
*
* Frame buffers attachments are updated when actually used as the image layout has to be
* correct. After binding framebuffers the layout of images can still be modified.
* correct. After binding frame-buffers the layout of images can still be modified.
*
* But for correct behavior of blit/clear operation the size of the framebuffer should be
* But for correct behavior of blit/clear operation the size of the frame-buffer should be
* set, when activating the frame buffer.
*/
void update_size();

View File

@ -1704,7 +1704,7 @@ static void rna_def_armature_edit_bones(BlenderRNA *brna, PropertyRNA *cprop)
RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, ParameterFlag(0));
}
/** Armature.collections collection-of-bonecollections interface. */
/** Armature.collections collection-of-bone-collections interface. */
static void rna_def_armature_collections(BlenderRNA *brna, PropertyRNA *cprop)
{
StructRNA *srna;

View File

@ -94,6 +94,7 @@ dict_custom = {
"deduplication",
"defocus",
"defragment",
"defragmented",
"defragmenting",
"degeneracies",
"deletable",
@ -109,6 +110,7 @@ dict_custom = {
"derivates",
"desaturate",
"designator",
"despeckle",
"despeckled",
"destructor",
"destructors",
@ -310,6 +312,7 @@ dict_custom = {
"schemas",
"scrollable",
"serializers",
"shadowless",
"sharpnesses",
"sidedness",
"simplices",
@ -412,6 +415,7 @@ dict_custom = {
"unmute",
"unnormalize",
"unnormalized",
"unoccluded",
"unoptimized",
"unparameterized",
"unparsed",