diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-13 18:18:41 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-13 18:18:41 +0300 |
commit | b8dac71bdab7bd562ca13eb8c4af2f966533067b (patch) | |
tree | a5ad1039b7065fef5e2e045c95743633ad241573 /source/blender/blenkernel/intern | |
parent | b3d8cbd1130578e440966449d0bec995c7764a18 (diff) |
2.5
- restored three more C files: editlattice, editkey
and editgroup
- editmode lattice working, (mouse select works)
- accidentally removed yesterday 3d cursor drawing
- removed global editLatt entirely now.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/lattice.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c index 46e7022c718..134d9f7155a 100644 --- a/source/blender/blenkernel/intern/lattice.c +++ b/source/blender/blenkernel/intern/lattice.c @@ -73,8 +73,6 @@ //XXX #include "BIF_editdeform.h" -Lattice *editLatt=0; - void calc_lat_fudu(int flag, int res, float *fu, float *du) { if(res==1) { @@ -233,6 +231,11 @@ void free_lattice(Lattice *lt) { if(lt->def) MEM_freeN(lt->def); if(lt->dvert) free_dverts(lt->dvert, lt->pntsu*lt->pntsv*lt->pntsw); + if(lt->editlatt) { + if(lt->def) MEM_freeN(lt->def); + if(lt->dvert) free_dverts(lt->dvert, lt->pntsu*lt->pntsv*lt->pntsw); + MEM_freeN(lt->editlatt); + } } |