Sculpt/Paint: Rename "Sculpt Tool" etc to "Brush Type" in the UI
Renames "Sculpt Tool", "Vertex Paint Tool", ... to "Brush Type" in all cases. The name "tool" is overloaded, plus, there actually is a "Brush Tool" now. As a follow up to the assets project merge we can rename this in C++, added this to #116337 and opened #124201. At least rename it in the UI for a start. Pull request: https://projects.blender.org/blender/blender/pulls/124203
This commit is contained in:
@@ -2433,58 +2433,58 @@ static void rna_def_brush(BlenderRNA *brna)
|
||||
*/
|
||||
prop = RNA_def_property(srna, "sculpt_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_sculpt_tool_items);
|
||||
RNA_def_property_ui_text(prop, "Sculpt Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
|
||||
RNA_def_property_update(prop, 0, "rna_Brush_update_and_reset_icon");
|
||||
|
||||
prop = RNA_def_property(srna, "vertex_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, nullptr, "vertexpaint_tool");
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_vertex_tool_items);
|
||||
RNA_def_property_ui_text(prop, "Vertex Paint Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Brush_update_and_reset_icon");
|
||||
|
||||
prop = RNA_def_property(srna, "weight_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, nullptr, "weightpaint_tool");
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_weight_tool_items);
|
||||
RNA_def_property_ui_text(prop, "Weight Paint Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Brush_update_and_reset_icon");
|
||||
|
||||
prop = RNA_def_property(srna, "image_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, nullptr, "imagepaint_tool");
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_image_tool_items);
|
||||
RNA_def_property_ui_text(prop, "Image Paint Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_IMAGE, "rna_Brush_update_and_reset_icon");
|
||||
|
||||
prop = RNA_def_property(srna, "gpencil_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, nullptr, "gpencil_tool");
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_gpencil_types_items);
|
||||
RNA_def_property_ui_text(prop, "Grease Pencil Draw Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_BRUSH);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
||||
prop = RNA_def_property(srna, "gpencil_vertex_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, nullptr, "gpencil_vertex_tool");
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_gpencil_vertex_types_items);
|
||||
RNA_def_property_ui_text(prop, "Grease Pencil Vertex Paint Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
||||
prop = RNA_def_property(srna, "gpencil_sculpt_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, nullptr, "gpencil_sculpt_tool");
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_gpencil_sculpt_types_items);
|
||||
RNA_def_property_ui_text(prop, "Grease Pencil Sculpt Paint Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
||||
prop = RNA_def_property(srna, "gpencil_weight_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, nullptr, "gpencil_weight_tool");
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_gpencil_weight_types_items);
|
||||
RNA_def_property_ui_text(prop, "Grease Pencil Weight Paint Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
||||
prop = RNA_def_property(srna, "curves_sculpt_tool", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, rna_enum_brush_curves_sculpt_tool_items);
|
||||
RNA_def_property_ui_text(prop, "Curves Sculpt Tool", "");
|
||||
RNA_def_property_ui_text(prop, "Brush Type", "");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CURVES);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user