[Bf-blender-cvs] [92a92fdca52] master: Fix T101031: Crash with Initialize Face Sets operator
Hans Goudey
noreply at git.blender.org
Tue Sep 13 14:48:50 CEST 2022
Commit: 92a92fdca520a28b7939941afc2997b264caa0df
Author: Hans Goudey
Date: Tue Sep 13 07:48:41 2022 -0500
Branches: master
https://developer.blender.org/rB92a92fdca520a28b7939941afc2997b264caa0df
Fix T101031: Crash with Initialize Face Sets operator
===================================================================
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 e66a7f8b9de..8aa645c6af5 100644
--- a/source/blender/editors/sculpt_paint/sculpt_face_set.c
+++ b/source/blender/editors/sculpt_paint/sculpt_face_set.c
@@ -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);
More information about the Bf-blender-cvs
mailing list