Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object.cc
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| if (ob->runtime.data_eval != nullptr) { | if (ob->runtime.data_eval != nullptr) { | ||||
| if (ob->runtime.is_data_eval_owned) { | if (ob->runtime.is_data_eval_owned) { | ||||
| ID *data_eval = ob->runtime.data_eval; | ID *data_eval = ob->runtime.data_eval; | ||||
| if (GS(data_eval->name) == ID_ME) { | if (GS(data_eval->name) == ID_ME) { | ||||
| BKE_mesh_eval_delete((Mesh *)data_eval); | BKE_mesh_eval_delete((Mesh *)data_eval); | ||||
| } | } | ||||
| else { | else { | ||||
| BKE_libblock_free_data(data_eval, false); | |||||
| BKE_libblock_free_datablock(data_eval, 0); | BKE_libblock_free_datablock(data_eval, 0); | ||||
| MEM_freeN(data_eval); | MEM_freeN(data_eval); | ||||
| } | } | ||||
| } | } | ||||
| ob->runtime.data_eval = nullptr; | ob->runtime.data_eval = nullptr; | ||||
| } | } | ||||
| if (ob->runtime.mesh_deform_eval != nullptr) { | if (ob->runtime.mesh_deform_eval != nullptr) { | ||||
| Mesh *mesh_deform_eval = ob->runtime.mesh_deform_eval; | Mesh *mesh_deform_eval = ob->runtime.mesh_deform_eval; | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||