Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/DerivedMesh.cc
| Show First 20 Lines • Show All 1,159 Lines • ▼ Show 20 Lines | static void mesh_calc_modifiers(struct Depsgraph *depsgraph, | ||||
| if (mesh_orco) { | if (mesh_orco) { | ||||
| BKE_id_free(nullptr, mesh_orco); | BKE_id_free(nullptr, mesh_orco); | ||||
| } | } | ||||
| if (mesh_orco_cloth) { | if (mesh_orco_cloth) { | ||||
| BKE_id_free(nullptr, mesh_orco_cloth); | BKE_id_free(nullptr, mesh_orco_cloth); | ||||
| } | } | ||||
| /* Remove temporary data layer only needed for modifier evaluation. | |||||
| * Save some memory, and ensure GPU subdivision does not need to deal with this. */ | |||||
| CustomData_free_layers(&mesh_final->vdata, CD_CLOTH_ORCO, mesh_final->totvert); | |||||
| /* Compute normals. */ | /* Compute normals. */ | ||||
| if (is_own_mesh) { | if (is_own_mesh) { | ||||
| mesh_calc_modifier_final_normals(mesh_input, &final_datamask, sculpt_dyntopo, mesh_final); | mesh_calc_modifier_final_normals(mesh_input, &final_datamask, sculpt_dyntopo, mesh_final); | ||||
| mesh_calc_finalize(mesh_input, mesh_final); | mesh_calc_finalize(mesh_input, mesh_final); | ||||
| } | } | ||||
| else { | else { | ||||
| Mesh_Runtime *runtime = &mesh_input->runtime; | Mesh_Runtime *runtime = &mesh_input->runtime; | ||||
| if (runtime->mesh_eval == nullptr) { | if (runtime->mesh_eval == nullptr) { | ||||
| ▲ Show 20 Lines • Show All 868 Lines • Show Last 20 Lines | |||||