[Bf-blender-cvs] [0e6c07c0631] sculpt-dev: Sculpt Symmetrize: Prevent crash with dyntopo and multires

Pablo Dobarro noreply at git.blender.org
Sun Apr 18 18:15:06 CEST 2021


Commit: 0e6c07c0631968aae6c73ee331ac5baa14059716
Author: Pablo Dobarro
Date:   Fri Apr 16 01:30:02 2021 +0200
Branches: sculpt-dev
https://developer.blender.org/rB0e6c07c0631968aae6c73ee331ac5baa14059716

Sculpt Symmetrize: Prevent crash with dyntopo and multires

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_symmetrize.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_symmetrize.c b/source/blender/editors/sculpt_paint/sculpt_symmetrize.c
index b81a52bad2d..e00376e810e 100644
--- a/source/blender/editors/sculpt_paint/sculpt_symmetrize.c
+++ b/source/blender/editors/sculpt_paint/sculpt_symmetrize.c
@@ -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;
   }



More information about the Bf-blender-cvs mailing list