[Bf-blender-cvs] [08f00f4f6ef] master: BMesh: Add shape-key support to edit-mesh symmetrize

Campbell Barton noreply at git.blender.org
Tue Jan 5 08:05:29 CET 2021


Commit: 08f00f4f6ef1cc71521aa29246de1f778fd8da3b
Author: Campbell Barton
Date:   Tue Jan 5 15:46:25 2021 +1100
Branches: master
https://developer.blender.org/rB08f00f4f6ef1cc71521aa29246de1f778fd8da3b

BMesh: Add shape-key support to edit-mesh symmetrize

Symmetrize now flips shape-keys too since using the un-flipped
locations creates an overlapping surface which isn't useful.

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 823213007b0..f574f21b39d 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -8192,9 +8192,10 @@ static int sculpt_symmetrize_exec(bContext *C, wmOperator *op)
       /* Symmetrize and re-triangulate. */
       BMO_op_callf(ss->bm,
                    (BMO_FLAG_DEFAULTS & ~BMO_FLAG_RESPECT_HIDE),
-                   "symmetrize input=%avef direction=%i  dist=%f",
+                   "symmetrize input=%avef direction=%i dist=%f use_shapekey=%b",
                    sd->symmetrize_direction,
-                   0.00001f);
+                   0.00001f,
+                   true);
       SCULPT_dynamic_topology_triangulate(ss->bm);
 
       /* Bisect operator flags edges (keep tags clean for edge queue). */



More information about the Bf-blender-cvs mailing list