Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/multires_unsubdivide.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* Free the reshape context used to convert the data from the original grids to object space. */ | /* Free the reshape context used to convert the data from the original grids to object space. */ | ||||
| if (mmd->totlvl != 0) { | if (mmd->totlvl != 0) { | ||||
| multires_reshape_context_free(&reshape_context); | multires_reshape_context_free(&reshape_context); | ||||
| } | } | ||||
| /* Copy the new base mesh to the original mesh. */ | /* Copy the new base mesh to the original mesh. */ | ||||
| BKE_mesh_nomain_to_mesh(unsubdiv_context.base_mesh, object->data, object, &CD_MASK_MESH, true); | BKE_mesh_nomain_to_mesh(unsubdiv_context.base_mesh, object->data, object); | ||||
| Mesh *base_mesh = object->data; | Mesh *base_mesh = object->data; | ||||
| multires_create_grids_in_unsubdivided_base_mesh(&unsubdiv_context, base_mesh); | multires_create_grids_in_unsubdivided_base_mesh(&unsubdiv_context, base_mesh); | ||||
| /* Update the levels in the modifier. Force always to display at level 0 as it contains the new | /* Update the levels in the modifier. Force always to display at level 0 as it contains the new | ||||
| * created level. */ | * created level. */ | ||||
| mmd->totlvl = (char)unsubdiv_context.num_total_levels; | mmd->totlvl = (char)unsubdiv_context.num_total_levels; | ||||
| if (switch_view_to_lower_level) { | if (switch_view_to_lower_level) { | ||||
| Show All 24 Lines | |||||