[Bf-blender-cvs] [0a3650210f8] master: UI: Fix sculpt curve not being able to get brush icons

Dalai Felinto noreply at git.blender.org
Wed Jun 15 18:34:12 CEST 2022


Commit: 0a3650210f83de7d0983eed7d52efe5ec602b4d4
Author: Dalai Felinto
Date:   Wed Jun 15 18:30:14 2022 +0200
Branches: master
https://developer.blender.org/rB0a3650210f83de7d0983eed7d52efe5ec602b4d4

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.

===================================================================

M	source/blender/editors/interface/interface_icons.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list