diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-03-06 13:22:27 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-03-06 13:22:27 +0300 |
commit | e3c10b9d08f20c68d1883b58e5be5de3c3867f2a (patch) | |
tree | a007a99f636f0b662cf14d1199df1cdde7c6b98a | |
parent | 7c0d2ffb6451583189158bae13522b2d8f317ce8 (diff) |
Fixed memory leak caused by incorrect adding data to mesh's layer in nurbs_to_mesh().
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index c0dd3c7e43a..03c9af26555 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -966,9 +966,9 @@ void nurbs_to_mesh(Object *ob) me->totface= totface; me->totedge= totedge; - me->mvert= CustomData_add_layer(&me->vdata, CD_MVERT, CD_REFERENCE, allvert, me->totvert); - me->mface= CustomData_add_layer(&me->fdata, CD_MFACE, CD_REFERENCE, allface, me->totface); - me->medge= CustomData_add_layer(&me->edata, CD_MEDGE, CD_REFERENCE, alledge, me->totedge); + me->mvert= CustomData_add_layer(&me->vdata, CD_MVERT, CD_ASSIGN, allvert, me->totvert); + me->mface= CustomData_add_layer(&me->fdata, CD_MFACE, CD_ASSIGN, allface, me->totface); + me->medge= CustomData_add_layer(&me->edata, CD_MEDGE, CD_ASSIGN, alledge, me->totedge); mesh_calc_normals(me->mvert, me->totvert, me->mface, me->totface, NULL); } else { |