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:
authorJoseph Eagar <joeedh@gmail.com>2022-09-20 20:00:41 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-09-20 20:03:28 +0300
commit32b766223a1b2a562e657a729e7d9f2926d42417 (patch)
tree84777afb84db764d7ea41c6fbc268a45a71d473c /source/blender/editors/sculpt_paint/sculpt_face_set.cc
parentbf1475770986d411d8b8036d9097745d80b37242 (diff)
Sculpt: Fix T100479: Boundary expand crash
Face sets were not being initialized. I had also forgotten to remove a dead struct member from SculptBoundary which was being accessed.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_face_set.cc')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_face_set.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.cc b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
index 7002ae7b358..485375a5cb1 100644
--- a/source/blender/editors/sculpt_paint/sculpt_face_set.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
@@ -1408,6 +1408,7 @@ static int sculpt_face_set_edit_invoke(bContext *C, wmOperator *op, const wmEven
return OPERATOR_CANCELLED;
}
+ ss->face_sets = BKE_sculpt_face_sets_ensure(BKE_mesh_from_object(ob));
BKE_sculpt_update_object_for_edit(depsgraph, ob, true, false, false);
/* Update the current active Face Set and Vertex as the operator can be used directly from the