diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-20 02:04:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-20 02:04:13 +0400 |
commit | 20d0205d99294965b4baa247f59698a11a8bf6e1 (patch) | |
tree | 94628b65e6bb5ab2b3d6548b715eab613d528215 /source/blender/blenkernel/intern/mesh.c | |
parent | 3fdf33f7d92d6e9d3888eee5221da3d038a32c33 (diff) |
error in last fix, used negate to check it was working.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index d1a027b19b5..087f82a151e 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -2361,10 +2361,10 @@ int mesh_recalcTesselation(CustomData *fdata, /* If polys have a normals layer, copying that to faces can help * avoid the need to recalculate normals later */ if (CustomData_has_layer(pdata, CD_NORMAL)) { - float *pnors = CustomData_get_layer(pdata, CD_NORMAL); - float *fnors = CustomData_add_layer(fdata, CD_NORMAL, CD_CALLOC, NULL, totface); - for (i=0; i<totface; i++, fnors += 3) { - negate_v3_v3(fnors, pnors + (polyIndex[i] * 3)); + float (*pnors)[3] = CustomData_get_layer(pdata, CD_NORMAL); + float (*fnors)[3] = CustomData_add_layer(fdata, CD_NORMAL, CD_CALLOC, NULL, totface); + for (i=0; i<totface; i++) { + copy_v3_v3(fnors[i], pnors[polyIndex[i]]); } } } |