| 394 | } |
| 395 | |
| 396 | Vector<String> Collada::_read_string_array(XMLParser &p_parser) { |
| 397 | if (p_parser.is_empty()) { |
| 398 | return Vector<String>(); |
| 399 | } |
| 400 | |
| 401 | Vector<String> array; |
| 402 | while (p_parser.read() == OK) { |
| 403 | /// @todo Check for comments inside the element and ignore them. |
| 404 | |
| 405 | if (p_parser.get_node_type() == XMLParser::NODE_TEXT) { |
| 406 | // parse String data |
| 407 | String str = p_parser.get_node_data(); |
| 408 | array = str.split_spaces(); |
| 409 | } else if (p_parser.get_node_type() == XMLParser::NODE_ELEMENT_END) { |
| 410 | break; // end parsing text |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | return array; |
| 415 | } |
| 416 | |
| 417 | Transform3D Collada::_read_transform(XMLParser &p_parser) { |
| 418 | if (p_parser.is_empty()) { |
nothing calls this directly
no test coverage detected