Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_mirror.c
| Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | static DerivedMesh *doMirrorOnAxis( | ||||
| /*copy customdata to original geometry*/ | /*copy customdata to original geometry*/ | ||||
| DM_copy_vert_data(dm, result, 0, 0, maxVerts); | DM_copy_vert_data(dm, result, 0, 0, maxVerts); | ||||
| DM_copy_edge_data(dm, result, 0, 0, maxEdges); | DM_copy_edge_data(dm, result, 0, 0, maxEdges); | ||||
| DM_copy_loop_data(dm, result, 0, 0, maxLoops); | DM_copy_loop_data(dm, result, 0, 0, maxLoops); | ||||
| DM_copy_poly_data(dm, result, 0, 0, maxPolys); | DM_copy_poly_data(dm, result, 0, 0, maxPolys); | ||||
| /* 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, CDDM_get_verts(result)); | dm->copyVertArray(dm, CDDM_get_verts(result)); | ||||
| } | } | ||||
| 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 220 Lines • Show Last 20 Lines | |||||