From 95f05a6a4ba66ed5533ad6d35ac92cdbe3aa0690 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 16 Sep 2022 18:13:19 +1000 Subject: Cleanup: spelling in comments --- source/blender/makesrna/RNA_types.h | 4 ++-- source/blender/makesrna/intern/rna_access.c | 2 +- source/blender/makesrna/intern/rna_nodetree.c | 2 +- source/blender/makesrna/intern/rna_space.c | 2 +- source/blender/makesrna/intern/rna_texture.c | 2 +- source/blender/makesrna/intern/rna_userdef.c | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 5346228050a..e7766e4a05e 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -120,7 +120,7 @@ typedef enum PropertyScaleType { /** * \note Also update enums in bpy_props.c and rna_rna.c when adding items here. - * Watch it: these values are written to files as part of node socket button subtypes! + * Watch it: these values are written to files as part of node socket button sub-types! */ typedef enum PropertySubType { PROP_NONE = 0, @@ -719,7 +719,7 @@ typedef enum StructFlag { STRUCT_CONTAINS_DATABLOCK_IDPROPERTIES = (1 << 8), /** Added to type-map #BlenderRNA.structs_map */ STRUCT_PUBLIC_NAMESPACE = (1 << 9), - /** All subtypes are added too. */ + /** All sub-types are added too. */ STRUCT_PUBLIC_NAMESPACE_INHERIT = (1 << 10), /** * When the #PointerRNA.owner_id is NULL, this signifies the property should be accessed diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 835265b1986..e5932f33604 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1135,7 +1135,7 @@ char RNA_property_array_item_char(PropertyRNA *prop, int index) int RNA_property_array_item_index(PropertyRNA *prop, char name) { - /* Don't use custom property subtypes in RNA path lookup. */ + /* Don't use custom property sub-types in RNA path lookup. */ PropertySubType subtype = rna_ensure_property(prop)->subtype; /* get index based on string name/alias */ diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index caeee35a80a..dbf5f434248 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -1892,7 +1892,7 @@ static void rna_Node_unregister(Main *UNUSED(bmain), StructRNA *type) } /* Generic internal registration function. - * Can be used to implement callbacks for registerable RNA node subtypes. + * Can be used to implement callbacks for registerable RNA node sub-types. */ static bNodeType *rna_Node_register_base(Main *bmain, ReportList *reports, diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 0a3c7827ed0..bf25e3214f8 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -6632,7 +6632,7 @@ static void rna_def_fileselect_params(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Title", "Title for the file browser"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); - /* Use BYTESTRING rather than DIRPATH as subtype so UI code doesn't add OT_directory_browse + /* Use BYTESTRING rather than DIRPATH as sub-type so UI code doesn't add OT_directory_browse * button when displaying this prop in the file browser (it would just open a file browser). That * should be the only effective difference between the two. */ prop = RNA_def_property(srna, "directory", PROP_STRING, PROP_BYTESTRING); diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index 3b28dc70e9e..26849bfa622 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -1235,7 +1235,7 @@ static void rna_def_texture_image(BlenderRNA *brna) # if 0 /* XXX: did this as an array, but needs better descriptions than "1 2 3 4" - * perhaps a new subtype could be added? + * perhaps a new sub-type could be added? * --I actually used single values for this, maybe change later with a RNA_Rect thing? */ prop = RNA_def_property(srna, "crop_rectangle", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "cropxmin"); diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 0031e023d39..b2f37ee2ae1 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -1685,7 +1685,7 @@ static void rna_def_userdef_theme_space_common(StructRNA *srna) RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); /* buttons */ - /* if (! ELEM(spacetype, SPACE_PROPERTIES, SPACE_OUTLINER)) { */ + // if (!ELEM(spacetype, SPACE_PROPERTIES, SPACE_OUTLINER)) { prop = RNA_def_property(srna, "button", PROP_FLOAT, PROP_COLOR_GAMMA); RNA_def_property_array(prop, 4); RNA_def_property_ui_text(prop, "Region Background", ""); @@ -1737,7 +1737,7 @@ static void rna_def_userdef_theme_space_common(StructRNA *srna) RNA_def_property_ui_text(prop, "Tab Outline", ""); RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); - /* } */ + // } } static void rna_def_userdef_theme_space_gradient(BlenderRNA *brna) -- cgit v1.2.3