[Bf-blender-cvs] [9d40b1cc3ec] master: Sculpt: Fix crash in face set init
Joseph Eagar
noreply at git.blender.org
Wed Oct 5 21:38:31 CEST 2022
Commit: 9d40b1cc3ec557b13e09f7989f9d7ccc624e091e
Author: Joseph Eagar
Date: Wed Oct 5 12:38:11 2022 -0700
Branches: master
https://developer.blender.org/rB9d40b1cc3ec557b13e09f7989f9d7ccc624e091e
Sculpt: Fix crash in face set init
===================================================================
M source/blender/editors/sculpt_paint/sculpt_face_set.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list