From 666c8b51ca667f2c91600a98745a4f115a82216d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Jun 2013 05:58:51 +0000 Subject: 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. --- source/blender/editors/mesh/mesh_data.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/blender/editors/mesh/mesh_data.c') 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); + } +} -- cgit v1.2.3