diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-04-25 17:28:32 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-04-25 17:28:32 +0400 |
commit | 631f2b94efe9d438a6a8027279d9e665f31653b6 (patch) | |
tree | 33fe4ba6b72a541bb2ba055ecd81f9e0bf5616e1 | |
parent | d0b74452ad296d9dfe0ca131c092a39528901b4b (diff) |
fix:#35073 face normals calculation used wrong mloop index
-rw-r--r-- | source/blender/collada/GeometryExporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/GeometryExporter.cpp b/source/blender/collada/GeometryExporter.cpp index 669b787062a..6881dab3d43 100644 --- a/source/blender/collada/GeometryExporter.cpp +++ b/source/blender/collada/GeometryExporter.cpp @@ -574,7 +574,7 @@ void GeometryExporter::create_normals(std::vector<Normal> &normals, std::vector< // For flat faces use face normal as vertex normal: float vector[3]; - BKE_mesh_calc_poly_normal(mpoly, mloops, verts, vector); + BKE_mesh_calc_poly_normal(mpoly, mloops+mpoly->loopstart, verts, vector); Normal n = { vector[0], vector[1], vector[2] }; normals.push_back(n); |