Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2024-02-20 19:25:54 +11:00
parent 81867f938c
commit 621787e71c
3 changed files with 7 additions and 6 deletions

@ -610,7 +610,7 @@ static ModifierData &legacy_object_modifier_common(Object &object,
}
BKE_modifier_unique_name(&object.modifiers, &new_md);
/* Handle commom modifier data. */
/* Handle common modifier data. */
new_md.mode = legacy_md.mode;
new_md.flag |= legacy_md.flag & (eModifierFlag_OverrideLibrary_Local | eModifierFlag_Active);
@ -750,7 +750,7 @@ void legacy_gpencil_object(Main &bmain, Object &object)
legacy_object_modifiers(bmain, object);
/* Layer adjusments should be added after all other modifiers. */
/* Layer adjustments should be added after all other modifiers. */
layer_adjustments_to_modifiers(bmain, *gpd, object);
/* Thickness factor is applied after all other changes to the radii. */
thickness_factor_to_modifier(*gpd, object);

@ -27,7 +27,7 @@ float roughness_from_relative_mip(float prev_mip_roughness, float curr_mip_rough
float m_prev = pow(prev_mip_roughness, exponent);
float m_curr = pow(curr_mip_roughness, exponent);
/* Given that spherical gaussians are very close to regular gaussian in 1D,
* we reuse the same rule for successive convolution (i.e: G(x,a) X G(x,b) = G(x,a+b)).
* we reuse the same rule for successive convolution (i.e: G`(x,a) X G(x,b) = G(x,a+b)`).
* While this isn't technically correct, this still works quite well in practice. */
float m_target = m_curr - m_prev;
/* From GGX roughness input to linear roughness. */

@ -539,11 +539,12 @@ class BlendFileBlock:
########################################################################################################################
# Way more basic access to blendfile data, without any DNA handling.
# Way more basic access to blend-file data, without any DNA handling.
class BlendFileRaw:
"""
Blend file, at a very low-level (only a collection of blocks). Can survive opening e.g. blendfiles withou DNA info.
Blend file, at a very low-level (only a collection of blocks).
Can survive opening e.g. blend-files without DNA info.
"""
__slots__ = (
# file (result of open())
@ -642,7 +643,7 @@ class BlendFileRaw:
class BlendFileBlockRaw:
"""
Instance of a raw blendfile block (only contains its header currently).
Instance of a raw blend-file block (only contains its header currently).
"""
__slots__ = (
# BlendFile