Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/collada/GeometryExporter.cpp')
-rw-r--r--source/blender/collada/GeometryExporter.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/source/blender/collada/GeometryExporter.cpp b/source/blender/collada/GeometryExporter.cpp
index a637bdc5155..5df5ab99b91 100644
--- a/source/blender/collada/GeometryExporter.cpp
+++ b/source/blender/collada/GeometryExporter.cpp
@@ -23,6 +23,13 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/** \file blender/collada/GeometryExporter.cpp
+ * \ingroup collada
+ */
+
+
+#include <sstream>
+
#include "COLLADASWPrimitves.h"
#include "COLLADASWSource.h"
#include "COLLADASWVertices.h"
@@ -109,6 +116,11 @@ void GeometryExporter::operator()(Object *ob)
}
closeMesh();
+
+ if (me->flag & ME_TWOSIDED) {
+ mSW->appendTextBlock("<extra><technique profile=\"MAYA\"><double_sided>1</double_sided></technique></extra>");
+ }
+
closeGeometry();
#if 0
@@ -162,7 +174,9 @@ void GeometryExporter::createPolylist(int material_index,
// sets material name
if (ma) {
- polylist.setMaterial(translate_id(id_name(ma)));
+ std::ostringstream ostr;
+ ostr << translate_id(id_name(ma)) << material_index+1;
+ polylist.setMaterial(ostr.str());
}
COLLADASW::InputList &til = polylist.getInputList();