From 101e0c9ec6db92a842a8ca8fc7b4e475a6f2f477 Mon Sep 17 00:00:00 2001 From: Pawel Kowal Date: Tue, 7 Jun 2016 22:07:48 +0200 Subject: Improved Blender/Collada shadeless->unshaded import --- tools/export/blender25/io_scene_dae/export_dae.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/export/blender25') 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,'') self.writel(S_FX,6,''+["0","1"][double_sided_hint]+"") self.writel(S_FX,5,'') + + if (material.use_shadeless): + self.writel(S_FX,5,'') + self.writel(S_FX,6,'1') + self.writel(S_FX,5,'') + self.writel(S_FX,4,'') self.writel(S_FX,3,'') -- cgit v1.2.3