diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-03-03 17:53:32 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-03-03 17:53:32 +0400 |
commit | 4774357b594c5cd5a38b21df131b539a197c101b (patch) | |
tree | 675450fb2851788da2ca3adea59c1bc8e07fd721 /source/blender/collada/GeometryExporter.h | |
parent | ceaf8e48ef5fbdb7e45a06b84bf24365ec5c5ed1 (diff) |
Collada: exported normals now based on MPoly instead of MFace
Diffstat (limited to 'source/blender/collada/GeometryExporter.h')
-rw-r--r-- | source/blender/collada/GeometryExporter.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/collada/GeometryExporter.h b/source/blender/collada/GeometryExporter.h index c880dfdbfcd..4b1427c11ca 100644 --- a/source/blender/collada/GeometryExporter.h +++ b/source/blender/collada/GeometryExporter.h @@ -42,6 +42,7 @@ #include "DNA_key_types.h" #include "ExportSettings.h" +#include "collada_utils.h" #include "BKE_key.h" @@ -71,8 +72,7 @@ public: void createLooseEdgeList(Object *ob, Mesh *me, - std::string& geom_id, - std::vector<Face>& norind); + std::string& geom_id); // powerful because it handles both cases when there is material and when there's not void createPolylist(short material_index, @@ -81,7 +81,7 @@ public: Object *ob, Mesh *me, std::string& geom_id, - std::vector<Face>& norind); + std::vector<BCPolygonNormalsIndices>& norind); // creates <source> for positions void createVertsSource(std::string geom_id, Mesh *me); @@ -97,7 +97,7 @@ public: //creates <source> for normals void createNormalsSource(std::string geom_id, Mesh *me, std::vector<Normal>& nor); - void create_normals(std::vector<Normal> &nor, std::vector<Face> &ind, Mesh *me); + void create_normals(std::vector<Normal> &nor, std::vector<BCPolygonNormalsIndices> &ind, Mesh *me); std::string getIdBySemantics(std::string geom_id, COLLADASW::InputSemantic::Semantics type, std::string other_suffix = ""); @@ -107,7 +107,6 @@ public: void export_key_mesh(Object *ob, Mesh *me, KeyBlock *kb); - /* int getTriCount(MFace *faces, int totface);*/ private: std::set<std::string> exportedGeometry; |