Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2023-07-12 12:45:35 +10:00
parent d5c2c98314
commit f9316e4079
7 changed files with 8 additions and 6 deletions

View File

@@ -85,7 +85,8 @@ class Drawing : public ::GreasePencilDrawing {
MutableSpan<float> radii_for_write();
/**
* Opacities for the points. Used by the render engine as an alpha value so they are expected to
* Opacity array for the points.
* Used by the render engine as an alpha value so they are expected to
* be between 0 and 1 inclusive.
*/
VArray<float> opacities() const;

View File

@@ -530,7 +530,7 @@ void BKE_lib_override_library_main_update(struct Main *bmain);
bool BKE_lib_override_library_id_is_user_deletable(struct Main *bmain, struct ID *id);
/**
* Debuging helper to show content of given liboverride data.
* Debugging helper to show content of given liboverride data.
*/
void BKE_lib_override_debug_print(struct IDOverrideLibrary *override, const char *intro_txt);

View File

@@ -276,7 +276,7 @@ static ID *lib_override_library_create_from(Main *bmain,
LIB_ID_COPY_DEFAULT | LIB_ID_COPY_NO_LIB_OVERRIDE |
lib_id_copy_flags);
/* Incase we could not get an override ID with the exact same name as its linked reference,
/* In case we could not get an override ID with the exact same name as its linked reference,
* ensure we at least get a uniquely named override ID over the whole current Main data, to
* reduce potential name collisions with other reference IDs.
*

View File

@@ -2614,7 +2614,7 @@ std::string MSLGeneratorInterface::generate_msl_vertex_out_struct(ShaderStage sh
bool first_attr_is_position = false;
if (this->uses_gl_Position) {
/* If Invariance is available, utilise this to consistently mitigate depth fighting artifacts
/* If invariance is available, utilize this to consistently mitigate depth fighting artifacts
* by ensuring that vertex position is consistently calculated between subsequent passes
* with maximum precision. */
out << "\tfloat4 _default_position_ [[position]]";

View File

@@ -1035,7 +1035,7 @@ static void rna_property_override_collection_subitem_name_index_lookup(
return;
}
/* If name lookup failed, `r_ptr_item_name` is invalidated, so if index lookup was sucessful it
/* If name lookup failed, `r_ptr_item_name` is invalidated, so if index lookup was successful it
* will be the only valid return value. */
}

View File

@@ -104,7 +104,7 @@ class LazyFunctionForSimulationInputNode final : public LazyFunction {
return;
}
/* Instead of outputing the initial values directly, convert them to a simulation state and
/* Instead of outputting the initial values directly, convert them to a simulation state and
* then back. This ensures that the first frame behaves consistently with all other frames
* which are necessarily stored in the simulation cache. */
bke::sim::SimulationZoneState initial_zone_state;

View File

@@ -156,6 +156,7 @@ dict_custom = {
"interferences",
"interocular",
"interpolator",
"invariance",
"invariant",
"invariants",
"invisibilities",