[Bf-blender-cvs] [12dd26a2bbb] blender-v2.91-release: Sculpt: fix face set extract clicking in empty space
Philipp Oeser
noreply at git.blender.org
Thu Nov 12 11:39:05 CET 2020
Commit: 12dd26a2bbb37fc369956d9e2bcd7d851aafafde
Author: Philipp Oeser
Date: Wed Nov 11 16:05:15 2020 +0100
Branches: blender-v2.91-release
https://developer.blender.org/rB12dd26a2bbb37fc369956d9e2bcd7d851aafafde
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
===================================================================
M source/blender/editors/sculpt_paint/sculpt_face_set.c
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list