Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-10-19 01:47:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-10-19 01:47:55 +0400
commit5ea45a1385a2bc71be572fd7923c508edb70eaa2 (patch)
tree74f5b52c92f8b0934d67c32f9e9483e2b054eb31 /source/blender/src/editmesh_mods.c
parent87b9283e1d1384f837c7c0d6f4fa4e27cf4d3cf3 (diff)
Mesh edit option 'AutoMerge' - access from the mesh menu, basically runs remove doubles after transform. but only merges
unselected verts into selected verts, so it wont merge verts your not editing.
Diffstat (limited to 'source/blender/src/editmesh_mods.c')
-rw-r--r--source/blender/src/editmesh_mods.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_mods.c b/source/blender/src/editmesh_mods.c
index a8c71824ef1..a0c864de016 100644
--- a/source/blender/src/editmesh_mods.c
+++ b/source/blender/src/editmesh_mods.c
@@ -131,6 +131,18 @@ void EM_select_mirrored(void)
}
}
+void EM_automerge(int update) {
+ if (G.scene->automerge) {
+ if (G.obedit && G.obedit->type==OB_MESH) {
+ if (removedoublesflag(1, 1, G.scene->toolsettings->doublimit)) {
+ if (update) {
+ DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
+ }
+ }
+ }
+ }
+}
+
/* ****************************** SELECTION ROUTINES **************** */
unsigned int em_solidoffs=0, em_wireoffs=0, em_vertoffs=0; /* set in drawobject.c ... for colorindices */
@@ -3331,7 +3343,7 @@ void Vertex_Menu() {
switch(ret)
{
case 1:
- notice("Removed %d Vertices", removedoublesflag(1, G.scene->toolsettings->doublimit));
+ notice("Removed %d Vertices", removedoublesflag(1, 0, G.scene->toolsettings->doublimit));
BIF_undo_push("Remove Doubles");
break;
case 2: