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:
authorNathan Letwory <nathan@letworyinteractive.com>2011-03-23 03:19:38 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2011-03-23 03:19:38 +0300
commit4470783264f49b4081e41d80f5b3349fb4a1be35 (patch)
tree3056f16ff6acd828ab8783fa2a151ed10e7a8f3e /source/blender/collada/GeometryExporter.cpp
parentee99cf5aa57d7772a98e4e727638fba548cab204 (diff)
Fix [#26474] double_sided wrong in COLLADA Export
reported by Juan Linietsky The export was not really wrong, but Maya expects their profile to be present inside <geometry>. Added this for mesh with ME_TWOSIDED flag set. Ideally this will change in the future to be controllable through options to the exporter (like current Google Earth and 3DS Max extensions for <double_sided>).
Diffstat (limited to 'source/blender/collada/GeometryExporter.cpp')
-rw-r--r--source/blender/collada/GeometryExporter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/collada/GeometryExporter.cpp b/source/blender/collada/GeometryExporter.cpp
index 332df0318e9..5df5ab99b91 100644
--- a/source/blender/collada/GeometryExporter.cpp
+++ b/source/blender/collada/GeometryExporter.cpp
@@ -116,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