Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_modifier.cc
| Show First 20 Lines • Show All 757 Lines • ▼ Show 20 Lines | else { | ||||
| true); | true); | ||||
| if (!mesh_applied) { | if (!mesh_applied) { | ||||
| BKE_report(reports, RPT_ERROR, "Modifier returned error, skipping apply"); | BKE_report(reports, RPT_ERROR, "Modifier returned error, skipping apply"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| Main *bmain = DEG_get_bmain(depsgraph); | Main *bmain = DEG_get_bmain(depsgraph); | ||||
| BKE_object_material_from_eval_data(bmain, ob, &mesh_applied->id); | BKE_object_material_from_eval_data(bmain, ob, &mesh_applied->id); | ||||
| BKE_mesh_nomain_to_mesh(mesh_applied, me, ob, &CD_MASK_MESH, true); | BKE_mesh_nomain_to_mesh(mesh_applied, me, ob); | ||||
| /* Anonymous attributes shouldn't be available on the applied geometry. */ | /* Anonymous attributes shouldn't be available on the applied geometry. */ | ||||
| blender::bke::mesh_attributes_for_write(*me).remove_anonymous(); | blender::bke::mesh_attributes_for_write(*me).remove_anonymous(); | ||||
| if (md_eval->type == eModifierType_Multires) { | if (md_eval->type == eModifierType_Multires) { | ||||
| multires_customdata_delete(me); | multires_customdata_delete(me); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||