diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-09 15:38:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-09 15:38:54 +0300 |
commit | 99e203dbd46237c204fa697374e21769473955f5 (patch) | |
tree | 470e4b7a5266d212de76277a89c00818930289bb | |
parent | a825df946aa2ffd9a378d524aa6fca65f7a42423 (diff) |
Bugfix #25547
Improved report print for 'remove doubles' to make it correct english.
Unsure if this kind of code can survive though, static strings do much
better for future translation efforts.
Instead of providing nice grammar sentences, we could make it more
declarative, like:
"Removed vertex amount: %d".
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 4f4bf159699..0fde8d75990 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -488,7 +488,8 @@ static int removedoublesflag_exec(bContext *C, wmOperator *op) WM_event_add_notifier(C, NC_GEOM|ND_DATA, obedit->data); } - BKE_reportf(op->reports, RPT_INFO, "Removed %d vertices", count); + BKE_reportf(op->reports, RPT_INFO, "Removed %d vert%s.", count, (count==1)?"ex":"ices"); + BKE_mesh_end_editmesh(obedit->data, em); return OPERATOR_FINISHED; |