Sculpt: Fix crash in face set init

This commit is contained in:
Joseph Eagar 2022-10-05 12:38:11 -07:00
parent 38af785dba
commit 9d40b1cc3e
1 changed files with 2 additions and 2 deletions

View File

@ -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;