Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_array.c
| Show First 20 Lines • Show All 545 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| /* copy customdata to original geometry */ | /* copy customdata to original geometry */ | ||||
| DM_copy_vert_data(dm, result, 0, 0, chunk_nverts); | DM_copy_vert_data(dm, result, 0, 0, chunk_nverts); | ||||
| DM_copy_edge_data(dm, result, 0, 0, chunk_nedges); | DM_copy_edge_data(dm, result, 0, 0, chunk_nedges); | ||||
| DM_copy_loop_data(dm, result, 0, 0, chunk_nloops); | DM_copy_loop_data(dm, result, 0, 0, chunk_nloops); | ||||
| DM_copy_poly_data(dm, result, 0, 0, chunk_npolys); | DM_copy_poly_data(dm, result, 0, 0, chunk_npolys); | ||||
| /* Subsurf for eg wont have mesh data in the custom data arrays. | /* Subsurf for eg won't have mesh data in the custom data arrays. | ||||
| * now add mvert/medge/mpoly layers. */ | * now add mvert/medge/mpoly layers. */ | ||||
| if (!CustomData_has_layer(&dm->vertData, CD_MVERT)) { | if (!CustomData_has_layer(&dm->vertData, CD_MVERT)) { | ||||
| dm->copyVertArray(dm, result_dm_verts); | dm->copyVertArray(dm, result_dm_verts); | ||||
| } | } | ||||
| if (!CustomData_has_layer(&dm->edgeData, CD_MEDGE)) { | if (!CustomData_has_layer(&dm->edgeData, CD_MEDGE)) { | ||||
| dm->copyEdgeArray(dm, CDDM_get_edges(result)); | dm->copyEdgeArray(dm, CDDM_get_edges(result)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines | |||||