diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-05 09:58:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-05 09:58:51 +0400 |
commit | 666c8b51ca667f2c91600a98745a4f115a82216d (patch) | |
tree | 40d3ab71c6e46d830ba7689e4f4b91bbe9eaf0ee /source/blender/editors/mesh/mesh_data.c | |
parent | e03bbcec651f35baca647b1c3fe79505ad546585 (diff) |
changes to mirror tools
- give feedback on how many mirror verts succeed/fail (for select mirror, shape key mirror, weight mirror)
... when a mirror failed it was confusing and not obvious what was going on.
- slight change to select mirror, now center vertices will remain selected.
- speedup to EDBM_verts_mirror_cache_begin, cache customdata layer offset.
Diffstat (limited to 'source/blender/editors/mesh/mesh_data.c')
-rw-r--r-- | source/blender/editors/mesh/mesh_data.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c index 869b2fb8f2d..d0869a30cbf 100644 --- a/source/blender/editors/mesh/mesh_data.c +++ b/source/blender/editors/mesh/mesh_data.c @@ -1243,3 +1243,13 @@ void ED_mesh_calc_tessface(Mesh *mesh) BKE_mesh_tessface_calc(mesh); } } + +void ED_mesh_report_mirror(wmOperator *op, int totmirr, int totfail) +{ + if (totfail) { + BKE_reportf(op->reports, RPT_WARNING, "%d vertices mirrored, %d failed", totmirr, totfail); + } + else { + BKE_reportf(op->reports, RPT_INFO, "%d vertices mirrored", totmirr); + } +} |