Sculpt Symmetrize: Prevent crash with dyntopo and multires

This commit is contained in:
Pablo Dobarro 2021-04-16 01:30:02 +02:00
parent cb3e0ff344
commit 0e6c07c063
1 changed files with 5 additions and 0 deletions

View File

@ -277,6 +277,11 @@ void SCULPT_do_symmetrize_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int to
SculptSession *ss = ob->sculpt;
Brush *brush = BKE_paint_brush(&sd->paint);
if (BKE_pbvh_type(ss->pbvh) != PBVH_FACES) {
return;
}
if (!SCULPT_stroke_is_main_symmetry_pass(ss->cache)) {
return;
}