diff options
author | Pawel Kowal <pkowal1982@gmail.com> | 2016-06-07 22:07:48 +0200 |
---|---|---|
committer | Pawel Kowal <pkowal1982@gmail.com> | 2016-06-07 22:07:48 +0200 |
commit | 101e0c9ec6db92a842a8ca8fc7b4e475a6f2f477 (patch) | |
tree | e98880414344e77822cd150af79eed434fd15fa9 /tools/collada | |
parent | 5e01566d01023b0ce136e6db122d5817d9b207eb (diff) |
Improved Blender/Collada shadeless->unshaded import
Diffstat (limited to 'tools/collada')
-rw-r--r-- | tools/collada/collada.cpp | 3 | ||||
-rw-r--r-- | tools/collada/collada.h | 3 |
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; } }; |