Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dalai@blender.org>2022-06-15 19:30:14 +0300
committerDalai Felinto <dalai@blender.org>2022-06-15 19:31:13 +0300
commit0a3650210f83de7d0983eed7d52efe5ec602b4d4 (patch)
tree04765443c9899db9d83b333db7f63fdb79d25109 /source/blender/editors/interface
parentd3edb3cfc7f979261b7f4660b8fca922c123f466 (diff)
UI: Fix sculpt curve not being able to get brush icons
This commit doesn't add the brush icons themselves, but it fix the code that allow them to be used.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_icons.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index 332b9b44b0a..ca4021a9be8 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -2034,6 +2034,9 @@ static int ui_id_brush_get_icon(const bContext *C, ID *id)
else if (ob->mode & OB_MODE_TEXTURE_PAINT) {
paint_mode = PAINT_MODE_TEXTURE_3D;
}
+ else if (ob->mode & OB_MODE_SCULPT_CURVES) {
+ paint_mode = PAINT_MODE_SCULPT_CURVES;
+ }
}
else if (space_type == SPACE_IMAGE) {
if (area->spacetype == space_type) {