= Changed Icosphere max to 8 and fixed Remove Doubles =
authorJuho Vepsalainen <bebraw@gmail.com>
Mon, 12 Nov 2007 12:54:37 +0000 (12:54 +0000)
committerJuho Vepsalainen <bebraw@gmail.com>
Mon, 12 Nov 2007 12:54:37 +0000 (12:54 +0000)
This commit changes icosphere maximum to 8 (was 500 before).
Also made Remove Doubles button found in the Buttons Window work again.

source/blender/src/buttons_editing.c
source/blender/src/editmesh_add.c

index c5720ac47afe4c23ea53a1e62dc15e8c57d3b5b2..affa06ae6b2210a09d05ba6a7429d6be4c2e3a94 100644 (file)
@@ -4331,7 +4331,7 @@ void do_meshbuts(unsigned short event)
                G.f -= G_DISABLE_OK;
                break;
        case B_REMDOUB:
-               count= removedoublesflag(1, 1, G.scene->toolsettings->doublimit);
+               count= removedoublesflag(1, 0, G.scene->toolsettings->doublimit);
                notice("Removed: %d", count);
                if (count) { /* only undo and redraw if an action is taken */
                        countall ();
index d594a5d94cdf26166b61238aaae33855536a4b31..8fb215491727109e029302e4f090971f3bad7bcc 100644 (file)
@@ -1279,7 +1279,7 @@ void add_primitiveMesh(int type)
                undostr="Add UV Sphere";
                break;
        case 12:        /* Icosphere */
-               add_numbut(0, NUM|INT, "Subdivision:", 1, 500, &subdiv, NULL);
+               add_numbut(0, NUM|INT, "Subdivision:", 1, 8, &subdiv, NULL);
                add_numbut(1, NUM|FLO, "Radius:", 0.001*G.vd->grid, 100*G.vd->grid, &dia, NULL);
                if (!(do_clever_numbuts("Add Ico Sphere", 2, REDRAW))) return;