Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/material.c
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | void BKE_material_free_ex(Material *ma, bool do_id_user) | ||||
| if (ma->ramp_col) MEM_freeN(ma->ramp_col); | if (ma->ramp_col) MEM_freeN(ma->ramp_col); | ||||
| if (ma->ramp_spec) MEM_freeN(ma->ramp_spec); | if (ma->ramp_spec) MEM_freeN(ma->ramp_spec); | ||||
| BKE_animdata_free((ID *)ma); | BKE_animdata_free((ID *)ma); | ||||
| if (ma->preview) | if (ma->preview) | ||||
| BKE_previewimg_free(&ma->preview); | BKE_previewimg_free(&ma->preview); | ||||
| BKE_icon_delete((struct ID *)ma); | BKE_icon_id_delete((struct ID *)ma); | ||||
| ma->id.icon_id = 0; | ma->id.icon_id = 0; | ||||
| /* is no lib link block, but material extension */ | /* is no lib link block, but material extension */ | ||||
| if (ma->nodetree) { | if (ma->nodetree) { | ||||
| ntreeFreeTree_ex(ma->nodetree, do_id_user); | ntreeFreeTree_ex(ma->nodetree, do_id_user); | ||||
| MEM_freeN(ma->nodetree); | MEM_freeN(ma->nodetree); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,215 Lines • Show Last 20 Lines | |||||