Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_mask.cc
| Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) | ||||
| Mesh *result = BKE_mesh_new_nomain_from_template( | Mesh *result = BKE_mesh_new_nomain_from_template( | ||||
| mesh, num_masked_vertices, num_masked_edges, 0, num_masked_loops, num_masked_polys); | mesh, num_masked_vertices, num_masked_edges, 0, num_masked_loops, num_masked_polys); | ||||
| copy_masked_vertices_to_new_mesh(*mesh, *result, vertex_map); | copy_masked_vertices_to_new_mesh(*mesh, *result, vertex_map); | ||||
| copy_masked_edges_to_new_mesh(*mesh, *result, vertex_map, edge_map); | copy_masked_edges_to_new_mesh(*mesh, *result, vertex_map, edge_map); | ||||
| copy_masked_polys_to_new_mesh( | copy_masked_polys_to_new_mesh( | ||||
| *mesh, *result, vertex_map, edge_map, masked_poly_indices, new_loop_starts); | *mesh, *result, vertex_map, edge_map, masked_poly_indices, new_loop_starts); | ||||
| BKE_mesh_calc_edges_loose(result); | |||||
| /* Tag to recalculate normals later. */ | /* Tag to recalculate normals later. */ | ||||
| result->runtime.cd_dirty_vert |= CD_MASK_NORMAL; | result->runtime.cd_dirty_vert |= CD_MASK_NORMAL; | ||||
| return result; | return result; | ||||
| } | } | ||||
| static bool isDisabled(const struct Scene *UNUSED(scene), | static bool isDisabled(const struct Scene *UNUSED(scene), | ||||
| ModifierData *md, | ModifierData *md, | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||