diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-06 04:08:26 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-06 04:08:26 +0300 |
commit | 8e97a2955b2f99ec61189cb972c09676a013a60b (patch) | |
tree | 89e67578ceac5a670a309b72295156cbfc7f05c7 /source/blender/blenkernel/intern/mesh.c | |
parent | 6feb2cc4f6d4c2131b959b77a8b87a5d7c9412a4 (diff) |
Merged Google Summer of Code sculptmode/multires/retopo tools.
From the tracker:
https://projects.blender.org/tracker/index.php?func=detail&aid=5018&group_id=9&atid=127
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index c0741e7137a..088f5af7e07 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -55,6 +55,8 @@ #include "DNA_meshdata_types.h" #include "DNA_ipo_types.h" +#include "BDR_sculptmode.h" + #include "BKE_depsgraph.h" #include "BKE_main.h" #include "BKE_DerivedMesh.h" @@ -80,6 +82,8 @@ #include "BLI_editVert.h" #include "BLI_arithb.h" +#include "multires.h" + int update_realtime_texture(TFace *tface, double time) @@ -153,6 +157,14 @@ void free_mesh(Mesh *me) { unlink_mesh(me); + if(me->pv) { + if(me->pv->vert_map) MEM_freeN(me->pv->vert_map); + if(me->pv->edge_map) MEM_freeN(me->pv->edge_map); + if(me->pv->old_faces) MEM_freeN(me->pv->old_faces); + if(me->pv->old_edges) MEM_freeN(me->pv->old_edges); + MEM_freeN(me->pv); + } + if(me->mvert) MEM_freeN(me->mvert); if(me->medge) MEM_freeN(me->medge); if(me->mface) MEM_freeN(me->mface); @@ -166,6 +178,8 @@ void free_mesh(Mesh *me) if(me->bb) MEM_freeN(me->bb); if(me->mselect) MEM_freeN(me->mselect); + + if(me->mr) multires_free(me); } void copy_dverts(MDeformVert *dst, MDeformVert *src, int copycount) |