Fix: typos in source/blender/makesrna

Fixes various user-facing and non-user-facing typos found
using `codespell` (see PR for details).

Ref !145754
This commit is contained in:
luz paz
2025-09-04 22:45:10 +02:00
committed by Campbell Barton
parent 91997ea89f
commit fe16660eaa
9 changed files with 15 additions and 15 deletions

View File

@@ -515,7 +515,7 @@ enum PropertyOverrideFlag {
* Unlike NO_COMPARISON, it can still be used by diffing code, but no override operation will be
* created for it, and no attempt to restore the data from linked reference either.
*
* WARNING: This flag should be used with a lot of caution, as it completely by-passes override
* WARNING: This flag should be used with a lot of caution, as it completely bypasses override
* system. It is currently only used for ID's names, since we cannot prevent local override to
* get a different name from the linked reference, and ID names are 'rna name property' (i.e. are
* used in overrides of collections of IDs). See also `BKE_lib_override_library_update()` where

View File

@@ -3549,7 +3549,7 @@ static void rna_auto_types()
pprop->type = (StructRNA *)rna_find_type(dp->dnatype);
}
/* Only automatically define `PROP_ID_REFCOUNT` if it was not already explicitely set or
/* Only automatically define `PROP_ID_REFCOUNT` if it was not already explicitly set or
* cleared by calls to `RNA_def_property_flag` or `RNA_def_property_clear_flag`. */
if ((pprop->property.flag_internal & PROP_INTERN_PTR_ID_REFCOUNT_FORCED) == 0 &&
pprop->type)

View File

@@ -2182,7 +2182,7 @@ static void rna_def_ID_override_library(BlenderRNA *brna)
"",
"Enforce restoring the dependency hierarchy between data-blocks to match the "
"one from the reference linked hierarchy (WARNING: if some ID pointers have "
"been purposedly overridden, these will be reset to their default value)");
"been purposely overridden, these will be reset to their default value)");
RNA_def_boolean(
func,
"do_whole_hierarchy",
@@ -2211,19 +2211,19 @@ static void rna_def_ID(BlenderRNA *brna)
"NEVER",
0,
"Never Rename",
"Never rename an exisitng ID whose name would conflict, the currently renamed ID will get "
"Never rename an existing ID whose name would conflict, the currently renamed ID will get "
"a numeric suffix appended to its new name"},
{int(IDNewNameMode::RenameExistingAlways),
"ALWAYS",
0,
"Always Rename",
"Always rename an exisitng ID whose name would conflict, ensuring that the currently "
"Always rename an existing ID whose name would conflict, ensuring that the currently "
"renamed ID will get requested name"},
{int(IDNewNameMode::RenameExistingSameRoot),
"SAME_ROOT",
0,
"Rename If Same Root",
"Only rename an exisitng ID whose name would conflict if its name root (everything besides "
"Only rename an existing ID whose name would conflict if its name root (everything besides "
"the numerical suffix) is the same as the existing name of the currently renamed ID"},
{0, nullptr, 0, nullptr, nullptr},
};
@@ -2249,7 +2249,7 @@ static void rna_def_ID(BlenderRNA *brna)
"RENAMED_COLLISION_ADJUSTED",
0,
"Renamed With Collision",
"The ID was renamed with adjustement of the requested name, to avoid a name collision"},
"The ID was renamed with adjustment of the requested name, to avoid a name collision"},
{int(IDNewNameResult::Action::RENAMED_COLLISION_FORCED),
"RENAMED_COLLISION_FORCED",
0,

View File

@@ -1202,7 +1202,7 @@ bool RNA_struct_bl_idname_ok_or_report(ReportList *reports,
{
BKE_reportf(reports,
eReportType(report_level),
"'%s' does not have upper case alpha-numeric prefix",
"'%s' does not have upper case alphanumeric prefix",
identifier);
return failure;
}
@@ -1217,7 +1217,7 @@ bool RNA_struct_bl_idname_ok_or_report(ReportList *reports,
{
BKE_reportf(reports,
eReportType(report_level),
"'%s' does not have an alpha-numeric suffix",
"'%s' does not have an alphanumeric suffix",
identifier);
return failure;
}
@@ -4094,7 +4094,7 @@ int RNA_property_string_length(PointerRNA *ptr, PropertyRNA *prop)
StringPropertyRNA *sprop = reinterpret_cast<StringPropertyRNA *>(prop_rna_or_id.rnaprop);
/* If there is a `get_transform` callback, no choice but get that final string to find out its
* length. Otherwise, get the 'storage length', whcih is typically more efficient to compute. */
* length. Otherwise, get the 'storage length', which is typically more efficient to compute. */
if (sprop->get_transform) {
std::string string_final = property_string_get(ptr, prop_rna_or_id);
return int(string_final.size());

View File

@@ -466,7 +466,7 @@ enum PropertyFlagIntern {
*/
PROP_INTERN_PTR_OWNERSHIP_FORCED = (1 << 5),
/**
* Indicates that #PROP_ID_REFCOUNT has been explicitely set (using `RNA_def_property_flag`) or
* Indicates that #PROP_ID_REFCOUNT has been explicitly set (using `RNA_def_property_flag`) or
* cleared (using `RNA_def_property_clear_flag`) by property definition code, and should
* therefore not be automatically defined based on #STRUCT_ID_REFCOUNT of the property type (in
* #rna_auto_types or #RNA_def_property_struct_runtime).

View File

@@ -6896,7 +6896,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
0,
"Balanced",
"Balanced between performance and quality"},
{SCE_COMPOSITOR_DENOISE_FAST, "FAST", 0, "Fast", "High perfomance"},
{SCE_COMPOSITOR_DENOISE_FAST, "FAST", 0, "Fast", "High performance"},
{0, nullptr, 0, nullptr, nullptr},
};

View File

@@ -2440,7 +2440,7 @@ static void rna_def_asset_shelf(BlenderRNA *brna)
"asset_reference",
"AssetWeakReference",
"",
"The weak reference to the asset to be hightlighted as active, or None");
"The weak reference to the asset to be highlighted as active, or None");
RNA_def_function_return(func, parm);
func = RNA_def_function(srna, "draw_context_menu", nullptr);

View File

@@ -1240,7 +1240,7 @@ void RNA_api_ui_layout(StructRNA *srna)
func = RNA_def_function(srna, "panel", "rna_uiLayoutPanel");
RNA_def_function_ui_description(
func,
"Creates a collapsable panel. Whether it is open or closed is stored in the region using "
"Creates a collapsible panel. Whether it is open or closed is stored in the region using "
"the given idname. This can only be used when the panel has the full width of the panel "
"region available to it. So it can't be used in e.g. in a box or columns.");
RNA_def_function_flag(func, FUNC_USE_CONTEXT | FUNC_USE_REPORTS);

View File

@@ -220,7 +220,7 @@ const EnumPropertyItem *rna_WorkSpaceTool_brush_type_itemf(bContext *C,
int totitem = 0;
EnumPropertyItem unset_item = {
-1, "ANY", 0, "Any", "Donnot limit this tool to a specific brush type"};
-1, "ANY", 0, "Any", "Do not limit this tool to a specific brush type"};
RNA_enum_item_add(&items, &totitem, &unset_item);
if (paint_mode != PaintMode::Invalid) {