Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_solidify.c
| Show First 20 Lines • Show All 807 Lines • ▼ Show 20 Lines | for (i = 0; i < newFaces; i++, mp++) { | ||||
| ed = medge + eidx; | ed = medge + eidx; | ||||
| /* copy most of the face settings */ | /* copy most of the face settings */ | ||||
| DM_copy_poly_data(dm, result, (int)fidx, (int)((numFaces * stride) + i), 1); | DM_copy_poly_data(dm, result, (int)fidx, (int)((numFaces * stride) + i), 1); | ||||
| mp->loopstart = (int)(j + (numLoops * stride)); | mp->loopstart = (int)(j + (numLoops * stride)); | ||||
| mp->flag = mpoly[fidx].flag; | mp->flag = mpoly[fidx].flag; | ||||
| /* notice we use 'mp->totloop' which is later overwritten, | /* notice we use 'mp->totloop' which is later overwritten, | ||||
| * we could lookup the original face but theres no point since this is a copy | * we could lookup the original face but there's no point since this is a copy | ||||
| * and will have the same value, just take care when changing order of assignment */ | * and will have the same value, just take care when changing order of assignment */ | ||||
| k1 = mpoly[fidx].loopstart + (((edge_order[eidx] - 1) + mp->totloop) % mp->totloop); /* prev loop */ | k1 = mpoly[fidx].loopstart + (((edge_order[eidx] - 1) + mp->totloop) % mp->totloop); /* prev loop */ | ||||
| k2 = mpoly[fidx].loopstart + (edge_order[eidx]); | k2 = mpoly[fidx].loopstart + (edge_order[eidx]); | ||||
| mp->totloop = 4; | mp->totloop = 4; | ||||
| CustomData_copy_data(&dm->loopData, &result->loopData, k2, (int)((numLoops * stride) + j + 0), 1); | CustomData_copy_data(&dm->loopData, &result->loopData, k2, (int)((numLoops * stride) + j + 0), 1); | ||||
| CustomData_copy_data(&dm->loopData, &result->loopData, k1, (int)((numLoops * stride) + j + 1), 1); | CustomData_copy_data(&dm->loopData, &result->loopData, k1, (int)((numLoops * stride) + j + 1), 1); | ||||
| ▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines | |||||