Mesh Animation + Depsgraph Tweaks:
[blender-staging.git] / source / blender / blenkernel / intern / mesh.c
index d5c597b802c9085a5ba4880c636adde4340ba048..0b48d5bd0adcfd6d5787bf5d43464bd45dfeabed 100644 (file)
@@ -143,7 +143,12 @@ void free_mesh(Mesh *me)
        CustomData_free(&me->vdata, me->totvert);
        CustomData_free(&me->edata, me->totedge);
        CustomData_free(&me->fdata, me->totface);
-
+       
+       if(me->adt) {
+               BKE_free_animdata(&me->id);
+               me->adt= NULL;
+       }
+       
        if(me->mat) MEM_freeN(me->mat);
        
        if(me->bb) MEM_freeN(me->bb);