diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2006-03-05 21:34:49 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2006-03-05 21:34:49 +0300 |
commit | f325da228ca824bb61310e7883c6b8a209f38acb (patch) | |
tree | 229c2d9514fab7e0c362dd3a4d56264227e763e4 /source | |
parent | fd1d3779d0a691f7d05b6f46ba909dbf43a6f1a3 (diff) |
fix for bug #3655
adding a DAG update like in other implantations of the call supress
the crash on remove double.
added the undo push too to be consistant
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/header_view3d.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/src/header_view3d.c b/source/blender/src/header_view3d.c index 9bb0137e447..abfb97720a7 100644 --- a/source/blender/src/header_view3d.c +++ b/source/blender/src/header_view3d.c @@ -2128,12 +2128,18 @@ void do_view3d_edit_mesh_verticesmenu(void *arg, int event) { switch(event) { - + int count; + case 0: /* make vertex parent */ make_parent(); break; case 1: /* remove doubles */ - notice("Removed: %d", removedoublesflag(1, G.scene->toolsettings->doublimit)); + count= removedoublesflag(1, G.scene->toolsettings->doublimit); + notice("Removed: %d", count); + if (count) { /* only undo and redraw if an action is taken */ + DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA); + BIF_undo_push("Rem Doubles"); + } break; case 2: /* smooth */ vertexsmooth(); |