From fe16660eaaeb76684315c58afa5c25b35463b3f2 Mon Sep 17 00:00:00 2001 From: luz paz Date: Thu, 4 Sep 2025 22:45:10 +0200 Subject: [PATCH] Fix: typos in source/blender/makesrna Fixes various user-facing and non-user-facing typos found using `codespell` (see PR for details). Ref !145754 --- source/blender/makesrna/RNA_types.hh | 2 +- source/blender/makesrna/intern/makesrna.cc | 2 +- source/blender/makesrna/intern/rna_ID.cc | 10 +++++----- source/blender/makesrna/intern/rna_access.cc | 6 +++--- source/blender/makesrna/intern/rna_internal_types.hh | 2 +- source/blender/makesrna/intern/rna_scene.cc | 2 +- source/blender/makesrna/intern/rna_ui.cc | 2 +- source/blender/makesrna/intern/rna_ui_api.cc | 2 +- source/blender/makesrna/intern/rna_workspace.cc | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/source/blender/makesrna/RNA_types.hh b/source/blender/makesrna/RNA_types.hh index ab65dd6c22b..8b6bb5d04c0 100644 --- a/source/blender/makesrna/RNA_types.hh +++ b/source/blender/makesrna/RNA_types.hh @@ -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 diff --git a/source/blender/makesrna/intern/makesrna.cc b/source/blender/makesrna/intern/makesrna.cc index 559c07f07b6..7d8aa2ce0f6 100644 --- a/source/blender/makesrna/intern/makesrna.cc +++ b/source/blender/makesrna/intern/makesrna.cc @@ -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) diff --git a/source/blender/makesrna/intern/rna_ID.cc b/source/blender/makesrna/intern/rna_ID.cc index 2f795f8faea..20b74746eb2 100644 --- a/source/blender/makesrna/intern/rna_ID.cc +++ b/source/blender/makesrna/intern/rna_ID.cc @@ -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, diff --git a/source/blender/makesrna/intern/rna_access.cc b/source/blender/makesrna/intern/rna_access.cc index 5ea17b75a99..38f0642f1ea 100644 --- a/source/blender/makesrna/intern/rna_access.cc +++ b/source/blender/makesrna/intern/rna_access.cc @@ -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(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()); diff --git a/source/blender/makesrna/intern/rna_internal_types.hh b/source/blender/makesrna/intern/rna_internal_types.hh index af0c0eab0c6..c6e4096af18 100644 --- a/source/blender/makesrna/intern/rna_internal_types.hh +++ b/source/blender/makesrna/intern/rna_internal_types.hh @@ -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). diff --git a/source/blender/makesrna/intern/rna_scene.cc b/source/blender/makesrna/intern/rna_scene.cc index 438d8f67cef..5dc304ae958 100644 --- a/source/blender/makesrna/intern/rna_scene.cc +++ b/source/blender/makesrna/intern/rna_scene.cc @@ -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}, }; diff --git a/source/blender/makesrna/intern/rna_ui.cc b/source/blender/makesrna/intern/rna_ui.cc index 6eaa6f37f66..aa64e9c48bd 100644 --- a/source/blender/makesrna/intern/rna_ui.cc +++ b/source/blender/makesrna/intern/rna_ui.cc @@ -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); diff --git a/source/blender/makesrna/intern/rna_ui_api.cc b/source/blender/makesrna/intern/rna_ui_api.cc index 38fe4aebb2a..2c0475e9bc0 100644 --- a/source/blender/makesrna/intern/rna_ui_api.cc +++ b/source/blender/makesrna/intern/rna_ui_api.cc @@ -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); diff --git a/source/blender/makesrna/intern/rna_workspace.cc b/source/blender/makesrna/intern/rna_workspace.cc index 1017cbb0545..ced546960de 100644 --- a/source/blender/makesrna/intern/rna_workspace.cc +++ b/source/blender/makesrna/intern/rna_workspace.cc @@ -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) {