Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/DerivedMesh.cc
| Show First 20 Lines • Show All 1,597 Lines • ▼ Show 20 Lines | static void editbmesh_calc_modifiers(struct Depsgraph *depsgraph, | ||||
| * constructive modifier is executed, or a deform modifier needs normals | * constructive modifier is executed, or a deform modifier needs normals | ||||
| * or certain data layers. */ | * or certain data layers. */ | ||||
| Mesh *mesh_input = (Mesh *)ob->data; | Mesh *mesh_input = (Mesh *)ob->data; | ||||
| Mesh *mesh_final = nullptr; | Mesh *mesh_final = nullptr; | ||||
| Mesh *mesh_cage = nullptr; | Mesh *mesh_cage = nullptr; | ||||
| /* This geometry set contains the non-mesh data that might be generated by modifiers. */ | /* This geometry set contains the non-mesh data that might be generated by modifiers. */ | ||||
| GeometrySet geometry_set_final; | GeometrySet geometry_set_final; | ||||
| /* Add the initial mesh component, with a copy of the vertex group names from the object, | |||||
| * since they need to be stored in the geometry set for evaluation. */ | |||||
| MeshComponent &initial_mesh_component = | |||||
| geometry_set_final.get_component_for_write<MeshComponent>(); | |||||
| initial_mesh_component.copy_vertex_group_names_from_object(*ob); | |||||
| /* Deformed vertex locations array. Deform only modifier need this type of | /* Deformed vertex locations array. Deform only modifier need this type of | ||||
| * float array rather than MVert*. Tracked along with mesh_final as an | * float array rather than MVert*. Tracked along with mesh_final as an | ||||
| * optimization to avoid copying coordinates back and forth if there are | * optimization to avoid copying coordinates back and forth if there are | ||||
| * multiple sequential deform only modifiers. */ | * multiple sequential deform only modifiers. */ | ||||
| float(*deformed_verts)[3] = nullptr; | float(*deformed_verts)[3] = nullptr; | ||||
| int num_deformed_verts = 0; | int num_deformed_verts = 0; | ||||
| bool isPrevDeform = false; | bool isPrevDeform = false; | ||||
| ▲ Show 20 Lines • Show All 926 Lines • Show Last 20 Lines | |||||