Fix T101031: Crash with Initialize Face Sets operator
This commit is contained in:
parent
a99a62231e
commit
92a92fdca5
Notes:
blender-bot
2023-02-13 14:31:16 +01:00
Referenced by issue #101031, Regression: Sculpt: Crash when running Initialize Face Sets operators
|
@ -713,6 +713,9 @@ static int sculpt_face_set_init_exec(bContext *C, wmOperator *op)
|
|||
|
||||
const float threshold = RNA_float_get(op->ptr, "threshold");
|
||||
|
||||
Mesh *mesh = ob->data;
|
||||
ss->face_sets = BKE_sculpt_face_sets_ensure(mesh);
|
||||
|
||||
switch (mode) {
|
||||
case SCULPT_FACE_SETS_FROM_LOOSE_PARTS:
|
||||
sculpt_face_sets_init_flood_fill(ob, sculpt_face_sets_init_loose_parts_test, threshold);
|
||||
|
|
Loading…
Reference in New Issue