UI: Remove icon usage in brush tool RNA enums
With brush assets, these tool-type icons will be removed completely. In main already though, it makes some sense to remove the usage of the icons in the brush tool type enum items. These icons are quite different than the others and don't look good with a small size anyway. As far as I can tell this doesn't make a difference in the UI anyway, since the enum menu selector exposed in the "Brushes" panel didn't show the icons anyway. Pull Request: https://projects.blender.org/blender/blender/pulls/121364
This commit is contained in:
@@ -149,79 +149,71 @@ const EnumPropertyItem rna_enum_brush_automasking_flag_items[] = {
|
||||
{0, nullptr, 0, nullptr, nullptr}};
|
||||
|
||||
const EnumPropertyItem rna_enum_brush_sculpt_tool_items[] = {
|
||||
{SCULPT_TOOL_DRAW, "DRAW", ICON_BRUSH_SCULPT_DRAW, "Draw", ""},
|
||||
{SCULPT_TOOL_DRAW_SHARP, "DRAW_SHARP", ICON_BRUSH_SCULPT_DRAW, "Draw Sharp", ""},
|
||||
{SCULPT_TOOL_CLAY, "CLAY", ICON_BRUSH_CLAY, "Clay", ""},
|
||||
{SCULPT_TOOL_CLAY_STRIPS, "CLAY_STRIPS", ICON_BRUSH_CLAY_STRIPS, "Clay Strips", ""},
|
||||
{SCULPT_TOOL_CLAY_THUMB, "CLAY_THUMB", ICON_BRUSH_CLAY_STRIPS, "Clay Thumb", ""},
|
||||
{SCULPT_TOOL_LAYER, "LAYER", ICON_BRUSH_LAYER, "Layer", ""},
|
||||
{SCULPT_TOOL_INFLATE, "INFLATE", ICON_BRUSH_INFLATE, "Inflate", ""},
|
||||
{SCULPT_TOOL_BLOB, "BLOB", ICON_BRUSH_BLOB, "Blob", ""},
|
||||
{SCULPT_TOOL_CREASE, "CREASE", ICON_BRUSH_CREASE, "Crease", ""},
|
||||
{SCULPT_TOOL_DRAW, "DRAW", 0, "Draw", ""},
|
||||
{SCULPT_TOOL_DRAW_SHARP, "DRAW_SHARP", 0, "Draw Sharp", ""},
|
||||
{SCULPT_TOOL_CLAY, "CLAY", 0, "Clay", ""},
|
||||
{SCULPT_TOOL_CLAY_STRIPS, "CLAY_STRIPS", 0, "Clay Strips", ""},
|
||||
{SCULPT_TOOL_CLAY_THUMB, "CLAY_THUMB", 0, "Clay Thumb", ""},
|
||||
{SCULPT_TOOL_LAYER, "LAYER", 0, "Layer", ""},
|
||||
{SCULPT_TOOL_INFLATE, "INFLATE", 0, "Inflate", ""},
|
||||
{SCULPT_TOOL_BLOB, "BLOB", 0, "Blob", ""},
|
||||
{SCULPT_TOOL_CREASE, "CREASE", 0, "Crease", ""},
|
||||
RNA_ENUM_ITEM_SEPR,
|
||||
{SCULPT_TOOL_SMOOTH, "SMOOTH", ICON_BRUSH_SMOOTH, "Smooth", ""},
|
||||
{SCULPT_TOOL_FLATTEN, "FLATTEN", ICON_BRUSH_FLATTEN, "Flatten", ""},
|
||||
{SCULPT_TOOL_FILL, "FILL", ICON_BRUSH_FILL, "Fill", ""},
|
||||
{SCULPT_TOOL_SCRAPE, "SCRAPE", ICON_BRUSH_SCRAPE, "Scrape", ""},
|
||||
{SCULPT_TOOL_MULTIPLANE_SCRAPE,
|
||||
"MULTIPLANE_SCRAPE",
|
||||
ICON_BRUSH_SCRAPE,
|
||||
"Multi-plane Scrape",
|
||||
""},
|
||||
{SCULPT_TOOL_PINCH, "PINCH", ICON_BRUSH_PINCH, "Pinch", ""},
|
||||
{SCULPT_TOOL_SMOOTH, "SMOOTH", 0, "Smooth", ""},
|
||||
{SCULPT_TOOL_FLATTEN, "FLATTEN", 0, "Flatten", ""},
|
||||
{SCULPT_TOOL_FILL, "FILL", 0, "Fill", ""},
|
||||
{SCULPT_TOOL_SCRAPE, "SCRAPE", 0, "Scrape", ""},
|
||||
{SCULPT_TOOL_MULTIPLANE_SCRAPE, "MULTIPLANE_SCRAPE", 0, "Multi-plane Scrape", ""},
|
||||
{SCULPT_TOOL_PINCH, "PINCH", 0, "Pinch", ""},
|
||||
RNA_ENUM_ITEM_SEPR,
|
||||
{SCULPT_TOOL_GRAB, "GRAB", ICON_BRUSH_GRAB, "Grab", ""},
|
||||
{SCULPT_TOOL_ELASTIC_DEFORM, "ELASTIC_DEFORM", ICON_BRUSH_GRAB, "Elastic Deform", ""},
|
||||
{SCULPT_TOOL_SNAKE_HOOK, "SNAKE_HOOK", ICON_BRUSH_SNAKE_HOOK, "Snake Hook", ""},
|
||||
{SCULPT_TOOL_THUMB, "THUMB", ICON_BRUSH_THUMB, "Thumb", ""},
|
||||
{SCULPT_TOOL_POSE, "POSE", ICON_BRUSH_GRAB, "Pose", ""},
|
||||
{SCULPT_TOOL_NUDGE, "NUDGE", ICON_BRUSH_NUDGE, "Nudge", ""},
|
||||
{SCULPT_TOOL_ROTATE, "ROTATE", ICON_BRUSH_ROTATE, "Rotate", ""},
|
||||
{SCULPT_TOOL_SLIDE_RELAX, "TOPOLOGY", ICON_BRUSH_GRAB, "Slide Relax", ""},
|
||||
{SCULPT_TOOL_BOUNDARY, "BOUNDARY", ICON_BRUSH_GRAB, "Boundary", ""},
|
||||
{SCULPT_TOOL_GRAB, "GRAB", 0, "Grab", ""},
|
||||
{SCULPT_TOOL_ELASTIC_DEFORM, "ELASTIC_DEFORM", 0, "Elastic Deform", ""},
|
||||
{SCULPT_TOOL_SNAKE_HOOK, "SNAKE_HOOK", 0, "Snake Hook", ""},
|
||||
{SCULPT_TOOL_THUMB, "THUMB", 0, "Thumb", ""},
|
||||
{SCULPT_TOOL_POSE, "POSE", 0, "Pose", ""},
|
||||
{SCULPT_TOOL_NUDGE, "NUDGE", 0, "Nudge", ""},
|
||||
{SCULPT_TOOL_ROTATE, "ROTATE", 0, "Rotate", ""},
|
||||
{SCULPT_TOOL_SLIDE_RELAX, "TOPOLOGY", 0, "Slide Relax", ""},
|
||||
{SCULPT_TOOL_BOUNDARY, "BOUNDARY", 0, "Boundary", ""},
|
||||
RNA_ENUM_ITEM_SEPR,
|
||||
{SCULPT_TOOL_CLOTH, "CLOTH", ICON_BRUSH_SCULPT_DRAW, "Cloth", ""},
|
||||
{SCULPT_TOOL_SIMPLIFY, "SIMPLIFY", ICON_BRUSH_DATA, "Simplify", ""},
|
||||
{SCULPT_TOOL_MASK, "MASK", ICON_BRUSH_MASK, "Mask", ""},
|
||||
{SCULPT_TOOL_DRAW_FACE_SETS, "DRAW_FACE_SETS", ICON_BRUSH_MASK, "Draw Face Sets", ""},
|
||||
{SCULPT_TOOL_CLOTH, "CLOTH", 0, "Cloth", ""},
|
||||
{SCULPT_TOOL_SIMPLIFY, "SIMPLIFY", 0, "Simplify", ""},
|
||||
{SCULPT_TOOL_MASK, "MASK", 0, "Mask", ""},
|
||||
{SCULPT_TOOL_DRAW_FACE_SETS, "DRAW_FACE_SETS", 0, "Draw Face Sets", ""},
|
||||
{SCULPT_TOOL_DISPLACEMENT_ERASER,
|
||||
"DISPLACEMENT_ERASER",
|
||||
ICON_BRUSH_SCULPT_DRAW,
|
||||
0,
|
||||
"Multires Displacement Eraser",
|
||||
""},
|
||||
{SCULPT_TOOL_DISPLACEMENT_SMEAR,
|
||||
"DISPLACEMENT_SMEAR",
|
||||
ICON_BRUSH_SCULPT_DRAW,
|
||||
"Multires Displacement Smear",
|
||||
""},
|
||||
{SCULPT_TOOL_PAINT, "PAINT", ICON_BRUSH_SCULPT_DRAW, "Paint", ""},
|
||||
{SCULPT_TOOL_SMEAR, "SMEAR", ICON_BRUSH_SCULPT_DRAW, "Smear", ""},
|
||||
{SCULPT_TOOL_DISPLACEMENT_SMEAR, "DISPLACEMENT_SMEAR", 0, "Multires Displacement Smear", ""},
|
||||
{SCULPT_TOOL_PAINT, "PAINT", 0, "Paint", ""},
|
||||
{SCULPT_TOOL_SMEAR, "SMEAR", 0, "Smear", ""},
|
||||
{0, nullptr, 0, nullptr, nullptr},
|
||||
};
|
||||
|
||||
const EnumPropertyItem rna_enum_brush_vertex_tool_items[] = {
|
||||
{VPAINT_TOOL_DRAW, "DRAW", ICON_BRUSH_MIX, "Draw", ""},
|
||||
{VPAINT_TOOL_BLUR, "BLUR", ICON_BRUSH_BLUR, "Blur", ""},
|
||||
{VPAINT_TOOL_AVERAGE, "AVERAGE", ICON_BRUSH_BLUR, "Average", ""},
|
||||
{VPAINT_TOOL_SMEAR, "SMEAR", ICON_BRUSH_BLUR, "Smear", ""},
|
||||
{VPAINT_TOOL_DRAW, "DRAW", 0, "Draw", ""},
|
||||
{VPAINT_TOOL_BLUR, "BLUR", 0, "Blur", ""},
|
||||
{VPAINT_TOOL_AVERAGE, "AVERAGE", 0, "Average", ""},
|
||||
{VPAINT_TOOL_SMEAR, "SMEAR", 0, "Smear", ""},
|
||||
{0, nullptr, 0, nullptr, nullptr},
|
||||
};
|
||||
|
||||
const EnumPropertyItem rna_enum_brush_weight_tool_items[] = {
|
||||
{WPAINT_TOOL_DRAW, "DRAW", ICON_BRUSH_MIX, "Draw", ""},
|
||||
{WPAINT_TOOL_BLUR, "BLUR", ICON_BRUSH_BLUR, "Blur", ""},
|
||||
{WPAINT_TOOL_AVERAGE, "AVERAGE", ICON_BRUSH_BLUR, "Average", ""},
|
||||
{WPAINT_TOOL_SMEAR, "SMEAR", ICON_BRUSH_BLUR, "Smear", ""},
|
||||
{WPAINT_TOOL_DRAW, "DRAW", 0, "Draw", ""},
|
||||
{WPAINT_TOOL_BLUR, "BLUR", 0, "Blur", ""},
|
||||
{WPAINT_TOOL_AVERAGE, "AVERAGE", 0, "Average", ""},
|
||||
{WPAINT_TOOL_SMEAR, "SMEAR", 0, "Smear", ""},
|
||||
{0, nullptr, 0, nullptr, nullptr},
|
||||
};
|
||||
|
||||
const EnumPropertyItem rna_enum_brush_image_tool_items[] = {
|
||||
{PAINT_TOOL_DRAW, "DRAW", ICON_BRUSH_TEXDRAW, "Draw", ""},
|
||||
{PAINT_TOOL_SOFTEN, "SOFTEN", ICON_BRUSH_SOFTEN, "Soften", ""},
|
||||
{PAINT_TOOL_SMEAR, "SMEAR", ICON_BRUSH_SMEAR, "Smear", ""},
|
||||
{PAINT_TOOL_CLONE, "CLONE", ICON_BRUSH_CLONE, "Clone", ""},
|
||||
{PAINT_TOOL_FILL, "FILL", ICON_BRUSH_TEXFILL, "Fill", ""},
|
||||
{PAINT_TOOL_MASK, "MASK", ICON_BRUSH_TEXMASK, "Mask", ""},
|
||||
{PAINT_TOOL_DRAW, "DRAW", 0, "Draw", ""},
|
||||
{PAINT_TOOL_SOFTEN, "SOFTEN", 0, "Soften", ""},
|
||||
{PAINT_TOOL_SMEAR, "SMEAR", 0, "Smear", ""},
|
||||
{PAINT_TOOL_CLONE, "CLONE", 0, "Clone", ""},
|
||||
{PAINT_TOOL_FILL, "FILL", 0, "Fill", ""},
|
||||
{PAINT_TOOL_MASK, "MASK", 0, "Mask", ""},
|
||||
{0, nullptr, 0, nullptr, nullptr},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user