diff --git a/tools/collada/collada.cpp b/tools/collada/collada.cpp
index 8f40ec1469b..577ca97ec8b 100644
--- a/tools/collada/collada.cpp
+++ b/tools/collada/collada.cpp
@@ -718,6 +718,9 @@ void Collada::_parse_effect_material(XMLParser& parser,Effect &effect,String &id
effect.found_double_sided=true;
effect.double_sided=parser.get_node_data().to_int();
COLLADA_PRINT("double sided: "+itos(parser.get_node_data().to_int()));
+ } else if (parser.get_node_name()=="unshaded") {
+ parser.read();
+ effect.unshaded=parser.get_node_data().to_int();
} else if (parser.get_node_name()=="bump") {
// color or texture types
diff --git a/tools/collada/collada.h b/tools/collada/collada.h
index 8983b8faf06..658d5fd008e 100644
--- a/tools/collada/collada.h
+++ b/tools/collada/collada.h
@@ -75,6 +75,7 @@ public:
float shininess;
bool found_double_sided;
bool double_sided;
+ bool unshaded;
String get_texture_path(const String& p_source,Collada& state) const;
@@ -83,7 +84,7 @@ public:
double_sided=true;
found_double_sided=false;
shininess=40;
-
+ unshaded=false;
}
};
diff --git a/tools/editor/io_plugins/editor_import_collada.cpp b/tools/editor/io_plugins/editor_import_collada.cpp
index f008c4a736a..7d7483e7af2 100644
--- a/tools/editor/io_plugins/editor_import_collada.cpp
+++ b/tools/editor/io_plugins/editor_import_collada.cpp
@@ -463,6 +463,7 @@ Error ColladaImport::_create_material(const String& p_target) {
material->set_parameter(FixedMaterial::PARAM_SPECULAR_EXP,effect.shininess);
material->set_flag(Material::FLAG_DOUBLE_SIDED,effect.double_sided);
+ material->set_flag(Material::FLAG_UNSHADED,effect.unshaded);
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py
index cdd845e3842..95b8b48a6bb 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,'')