summaryrefslogtreecommitdiff
path: root/tools/export/blender25
diff options
context:
space:
mode:
authorPawel Kowal <pkowal1982@gmail.com>2016-06-07 22:07:48 +0200
committerPawel Kowal <pkowal1982@gmail.com>2016-06-07 22:07:48 +0200
commit101e0c9ec6db92a842a8ca8fc7b4e475a6f2f477 (patch)
treee98880414344e77822cd150af79eed434fd15fa9 /tools/export/blender25
parent5e01566d01023b0ce136e6db122d5817d9b207eb (diff)
Improved Blender/Collada shadeless->unshaded import
Diffstat (limited to 'tools/export/blender25')
-rw-r--r--tools/export/blender25/io_scene_dae/export_dae.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py
index 3bb440ffe5..2f7d1ddd86 100644
--- a/tools/export/blender25/io_scene_dae/export_dae.py
+++ b/tools/export/blender25/io_scene_dae/export_dae.py
@@ -351,6 +351,12 @@ class DaeExporter:
self.writel(S_FX,5,'<technique profile="GOOGLEEARTH">')
self.writel(S_FX,6,'<double_sided>'+["0","1"][double_sided_hint]+"</double_sided>")
self.writel(S_FX,5,'</technique>')
+
+ if (material.use_shadeless):
+ self.writel(S_FX,5,'<technique profile="GODOT">')
+ self.writel(S_FX,6,'<unshaded>1</unshaded>')
+ self.writel(S_FX,5,'</technique>')
+
self.writel(S_FX,4,'</extra>')
self.writel(S_FX,3,'</technique>')