diff options
author | Daniel Dunbar <daniel@zuster.org> | 2004-01-07 13:17:37 +0300 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2004-01-07 13:17:37 +0300 |
commit | ecd620a5aad00c21a67301c5a029785bf6667e3a (patch) | |
tree | 54fe3fed77e477e3fc64b5a4817874048c8c41eb /source/blender/src | |
parent | 38e88310b04736abfdc24150cd880204472328ed (diff) |
- removed some old cruft from init_render_displist_mesh (for smeshes-RIP)
- reduced main subsurf interface to two functions to make DispListMesh
structures from an editmesh or a regular mesh. for the most part this
means that to implement a geometry modifier you only need to write
these two functions (not very plugable yet however).
- added displistmesh_from_mesh and displistmesh_from_editmesh functions
which allow simple support of subdivLevel(0) subsurfs, somewhat handy
for testing things (like why orco doesn't work for subsurf).
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/editobject.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 398ae297a4a..65435e68b6c 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -1701,6 +1701,8 @@ void convertmenu(void) error("No subdivision Mesh to convert available"); } else if (oldme->flag&ME_SUBSURF) { + DispListMesh *dlm; + ob->flag |= OB_DONE; ob1= copy_object(ob); @@ -1725,8 +1727,10 @@ void convertmenu(void) for(a=0; a<ob1->totcol; a++) id_us_plus((ID *)me->mat[a]); } - subsurf_to_mesh(ob, ob1->data); - + dlm= subsurf_make_dispListMesh_from_mesh(oldme, NULL, oldme->subdiv, oldme->flag); + displistmesh_to_mesh(dlm, ob1->data); + displistmesh_free(dlm); + tex_space_mesh(me); } } |