Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-01-05 07:46:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-05 10:03:56 +0300
commit08f00f4f6ef1cc71521aa29246de1f778fd8da3b (patch)
tree10dbbe88bf04bfa6e93444600b0b3f432f898873 /source
parent4150facd617407d974f2ac8fc2e51562950c59f9 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c5
1 files changed, 3 insertions, 2 deletions
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). */