Fixes for memory leaks when exiting Blender while still in WeightPaint Mode.
This commit is contained in:
@@ -87,9 +87,16 @@ void ED_editors_exit(bContext *C)
|
||||
// else if(ob->type==OB_MBALL)
|
||||
// BLI_freelistN(&editelems);
|
||||
// free_editLatt();
|
||||
// free_posebuf();
|
||||
// free_posebuf(); // XXX this is still a global...
|
||||
}
|
||||
}
|
||||
else if(sce->basact && sce->basact->object) {
|
||||
Object *ob= sce->basact->object;
|
||||
|
||||
/* if weight-painting is on, free mesh octree data */
|
||||
if(ob->mode & OB_MODE_WEIGHT_PAINT)
|
||||
mesh_octree_table(ob, NULL, NULL, 'e');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user