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:
authorDaniel Dunbar <daniel@zuster.org>2004-01-18 21:14:15 +0300
committerDaniel Dunbar <daniel@zuster.org>2004-01-18 21:14:15 +0300
commit8139587af5100b05dded09a162607021b2c3dd7a (patch)
treec7ac85092e632b4ec0d232399f71793afb7ae619 /source/blender/src/buttons_editing.c
parent73665ee9bda2e0ee2bb5c34c2ffcec016e4ca5e9 (diff)
- spelled catmull's name right ;)
- bug fix, rebuild displist after decimation apply - bug fix, decimation was not freeing deform weights
Diffstat (limited to 'source/blender/src/buttons_editing.c')
-rw-r--r--source/blender/src/buttons_editing.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index c184d3aaa64..575fb4a7dbc 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -199,12 +199,14 @@ static void decimate_faces(void)
me= ob->data;
/* add warning for vertex col and tfaces */
- if(me->tface || me->mcol) {
- if(okee("This will remove UV coordinates and vertexcolors")==0) return;
+ if(me->tface || me->mcol || me->dvert) {
+ if(okee("This will remove UV coordinates, vertexcolors, and deform weights")==0) return;
if(me->tface) MEM_freeN(me->tface);
if(me->mcol) MEM_freeN(me->mcol);
+ if(me->dvert) free_dverts(me->dvert, me->totvert);
me->tface= NULL;
me->mcol= NULL;
+ me->dvert= NULL;
}
/* count number of trias, since decimator doesnt allow quads */
@@ -359,6 +361,10 @@ static void decimate_apply(void)
free_editMesh();
G.obedit= NULL;
tex_space_mesh(me);
+
+ if (mesh_uses_displist(me)) {
+ makeDispList(ob);
+ }
}
else error("Not a decimated Mesh");
}
@@ -372,7 +378,7 @@ static void editing_panel_mesh_type(Object *ob, Mesh *me)
uiBlock *block;
float val;
/* Hope to support more than two subsurf algorithms */
- char subsurfmenu[]="Subsurf Type%t|Catmul Clark%x0|Simple Subdiv.%x1";
+ char subsurfmenu[]="Subsurf Type%t|Catmull-Clark%x0|Simple Subdiv.%x1";
block= uiNewBlock(&curarea->uiblocks, "editing_panel_mesh_type", UI_EMBOSS, UI_HELV, curarea->win);
if( uiNewPanel(curarea, block, "Mesh", "Editing", 320, 0, 318, 204)==0) return;