summaryrefslogtreecommitdiff
path: root/tools/collada
diff options
context:
space:
mode:
Diffstat (limited to 'tools/collada')
-rw-r--r--tools/collada/collada.cpp3
-rw-r--r--tools/collada/collada.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/tools/collada/collada.cpp b/tools/collada/collada.cpp
index f0fde20dfc..11a0e1726b 100644
--- a/tools/collada/collada.cpp
+++ b/tools/collada/collada.cpp
@@ -736,6 +736,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 01934a1e76..9340cdd3f3 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;
}
};