Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_screw.c
| Show First 20 Lines • Show All 480 Lines • ▼ Show 20 Lines | for (i = 0, mp_orig = mpoly_orig; i < totpoly; i++, mp_orig++) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (ltmd->flag & MOD_SCREW_NORMAL_CALC) { | if (ltmd->flag & MOD_SCREW_NORMAL_CALC) { | ||||
| /* | /* | ||||
| * Normal Calculation (for face flipping) | * Normal Calculation (for face flipping) | ||||
| * Sort edge verts for correct face flipping | * Sort edge verts for correct face flipping | ||||
| * NOT REALLY NEEDED but face flipping is nice. | * NOT REALLY NEEDED but face flipping is nice. */ | ||||
| * | |||||
| * */ | |||||
| /* Notice! | /* Notice! | ||||
| * | * | ||||
| * Since we are only ordering the edges here it can avoid mallocing the | * Since we are only ordering the edges here it can avoid mallocing the | ||||
| * extra space by abusing the vert array before its filled with new verts. | * extra space by abusing the vert array before its filled with new verts. | ||||
| * The new array for vert_connect must be at least sizeof(ScrewVertConnect) * totvert | * The new array for vert_connect must be at least sizeof(ScrewVertConnect) * totvert | ||||
| * and the size of our resulting meshes array is sizeof(MVert) * totvert * 3 | * and the size of our resulting meshes array is sizeof(MVert) * totvert * 3 | ||||
| * so its safe to use the second 2 thirds of MVert the array for vert_connect, | * so its safe to use the second 2 thirds of MVert the array for vert_connect, | ||||
| ▲ Show 20 Lines • Show All 779 Lines • Show Last 20 Lines | |||||