summaryrefslogtreecommitdiff
path: root/tools/collada
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-11-29 19:55:12 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-11-29 19:55:12 -0300
commita47c78aed113a9b4c009c5a2ef29c690192c7eef (patch)
tree93bed03fdf277a59a6cb10cc2ca9ef6a0f17ace6 /tools/collada
parent3f40701002254aeb20e20acbad0cd28a9b7476e3 (diff)
Screen space reflection effect
Diffstat (limited to 'tools/collada')
-rw-r--r--tools/collada/collada.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/collada/collada.cpp b/tools/collada/collada.cpp
index 268d42a613..431c2b1874 100644
--- a/tools/collada/collada.cpp
+++ b/tools/collada/collada.cpp
@@ -463,7 +463,7 @@ Transform Collada::_read_transform(XMLParser& parser) {
if (parser.is_empty())
return Transform();
- Vector<float> array;
+ Vector<String> array;
while(parser.read()==OK) {
// TODO: check for comments inside the element
// and ignore them.
@@ -471,7 +471,7 @@ Transform Collada::_read_transform(XMLParser& parser) {
if (parser.get_node_type() == XMLParser::NODE_TEXT) {
// parse float data
String str = parser.get_node_data();
- array=str.split_floats(" ",false);
+ array=str.split_spaces();
}
else
if (parser.get_node_type() == XMLParser::NODE_ELEMENT_END)
@@ -479,7 +479,13 @@ Transform Collada::_read_transform(XMLParser& parser) {
}
ERR_FAIL_COND_V(array.size()!=16,Transform());
- return _read_transform_from_array(array);
+ Vector<float> farr;
+ farr.resize(16);
+ for(int i=0;i<16;i++) {
+ farr[i]=array[i].to_double();
+ }
+
+ return _read_transform_from_array(farr);
}
String Collada::_read_empty_draw_type(XMLParser& parser) {