Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-13 15:48:41 +0300
committerHans Goudey <h.goudey@me.com>2022-09-13 15:48:41 +0300
commit92a92fdca520a28b7939941afc2997b264caa0df (patch)
tree0a8d920b83c9490368a3de7310638a93cca5d2f9
parenta99a62231e040a15c93add9ffa582ec9e1d9c4f1 (diff)
Fix T101031: Crash with Initialize Face Sets operator
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_face_set.c3
1 files changed, 3 insertions, 0 deletions
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);