Fixes a memory leak which caused Blender to hog up more and more memory
when rendering long animations.
This commit is contained in:
@@ -464,6 +464,7 @@ void make_orco_displist_mesh(Object *ob, int subdivlvl)
|
|||||||
*/
|
*/
|
||||||
dlm= dl->mesh;
|
dlm= dl->mesh;
|
||||||
|
|
||||||
|
if (me->orco) MEM_freeN(me->orco);
|
||||||
me->orco= MEM_mallocN(dlm->totvert*3*sizeof(float), "mesh displist orco");
|
me->orco= MEM_mallocN(dlm->totvert*3*sizeof(float), "mesh displist orco");
|
||||||
|
|
||||||
for(i=0; i<dlm->totvert; i++) {
|
for(i=0; i<dlm->totvert; i++) {
|
||||||
|
Reference in New Issue
Block a user