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.
This commit is contained in:
Dalai Felinto
2022-06-15 18:30:14 +02:00
parent d3edb3cfc7
commit 0a3650210f

View File

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