diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-11-11 18:05:15 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-11-12 13:36:29 +0300 |
commit | 12dd26a2bbb37fc369956d9e2bcd7d851aafafde (patch) | |
tree | 2d3eece1985ed8d8dece224757a29b07f7707858 /source/blender/editors | |
parent | b4b4532ce08d10468b04c42b092ef9cff603958d (diff) |
Sculpt: fix face set extract clicking in empty space
Should not do anything in that case.
ref T82615
Maniphest Tasks: T82615
Differential Revision: https://developer.blender.org/D9532
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_face_set.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.c b/source/blender/editors/sculpt_paint/sculpt_face_set.c index bfe741d2625..a9a2b1af2b1 100644 --- a/source/blender/editors/sculpt_paint/sculpt_face_set.c +++ b/source/blender/editors/sculpt_paint/sculpt_face_set.c @@ -110,7 +110,10 @@ int ED_sculpt_face_sets_active_update_and_get(bContext *C, Object *ob, const flo } SculptCursorGeometryInfo gi; - SCULPT_cursor_geometry_info_update(C, &gi, mval, false); + if (!SCULPT_cursor_geometry_info_update(C, &gi, mval, false)) { + return SCULPT_FACE_SET_NONE; + } + return SCULPT_active_face_set_get(ss); } |