diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-24 14:13:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-24 14:15:35 +0300 |
commit | d252ac6b9528d60b1235e095888f91e202ac4399 (patch) | |
tree | 703fbb55183d18770000950ba56a5b77c788aa43 /source | |
parent | 6715bfee92e72dd91a4bebd2fd81f817036f3a91 (diff) |
Fix possible invalid normal use w/ tangent calc
Was using MFace normals, not MPoly
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index 8b7329cf940..1f86f616bd3 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -3456,7 +3456,7 @@ void DM_calc_loop_tangents( * have to check this is valid... */ mesh2tangent->precomputedLoopNormals = dm->getLoopDataArray(dm, CD_NORMAL); - mesh2tangent->precomputedFaceNormals = CustomData_get_layer(&dm->faceData, CD_NORMAL); + mesh2tangent->precomputedFaceNormals = CustomData_get_layer(&dm->polyData, CD_NORMAL); mesh2tangent->orco = NULL; mesh2tangent->mloopuv = CustomData_get_layer_named(&dm->loopData, CD_MLOOPUV, dm->loopData.layers[index].name); |