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-10-05 22:38:11 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-10-05 22:38:26 +0300
commit9d40b1cc3ec557b13e09f7989f9d7ccc624e091e (patch)
tree925fa49243ee35526c04fa4fa4ddd884a58cde7c /source/blender/editors/sculpt_paint
parent38af785dba0989871b5c6c258c7e748a462e2f9a (diff)
Sculpt: Fix crash in face set init
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_face_set.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.cc b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
index a85aa623519..15a91e4eaab 100644
--- a/source/blender/editors/sculpt_paint/sculpt_face_set.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
@@ -626,13 +626,13 @@ static int sculpt_face_set_init_exec(bContext *C, wmOperator *op)
const int mode = RNA_enum_get(op->ptr, "mode");
+ BKE_sculpt_update_object_for_edit(depsgraph, ob, true, false, false);
+
/* Dyntopo not supported. */
if (BKE_pbvh_type(ss->pbvh) == PBVH_BMESH) {
return OPERATOR_CANCELLED;
}
- BKE_sculpt_update_object_for_edit(depsgraph, ob, true, false, false);
-
PBVH *pbvh = ob->sculpt->pbvh;
PBVHNode **nodes;
int totnode;