diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-13 14:45:40 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-13 14:45:40 +0400 |
commit | a806a892553738db53e8e74895c678cc0d1cabeb (patch) | |
tree | 08a65bab1eae00a9999e6a701aaceb0912ab6bd0 /source/blender/editors/mesh/editmesh_tools.c | |
parent | 161ee379a06d57f0dc732960ae05f089924727fb (diff) |
Fix #22804: own mistake, remove doubles shouldn't get cancelled if no
vertices are merged, but finish so the threshold can be tweaked.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 681e14dd693..ca9b0ff67f7 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -485,17 +485,16 @@ static int removedoublesflag_exec(bContext *C, wmOperator *op) int count = removedoublesflag(em,1,0,RNA_float_get(op->ptr, "limit")); - if(!count) - return OPERATOR_CANCELLED; + if(count) { + recalc_editnormals(em); - recalc_editnormals(em); + DAG_id_flush_update(obedit->data, OB_RECALC_DATA); + WM_event_add_notifier(C, NC_GEOM|ND_DATA, obedit->data); + } BKE_reportf(op->reports, RPT_INFO, "Removed %d vertices", count); - - DAG_id_flush_update(obedit->data, OB_RECALC_DATA); - WM_event_add_notifier(C, NC_GEOM|ND_DATA, obedit->data); - BKE_mesh_end_editmesh(obedit->data, em); + return OPERATOR_FINISHED; } |