|
@@ -1683,8 +1683,12 @@ Collada::Node* Collada::_parse_visual_scene_node(XMLParser& parser) {
|
|
if ( parser.has_attribute("sid") ) { //bones may not have sid
|
|
if ( parser.has_attribute("sid") ) { //bones may not have sid
|
|
joint->sid=parser.get_attribute_value("sid");
|
|
joint->sid=parser.get_attribute_value("sid");
|
|
// state.bone_map[joint->sid]=joint;
|
|
// state.bone_map[joint->sid]=joint;
|
|
- } else if (state.idref_joints.has(name))
|
|
|
|
|
|
+ } else if (state.idref_joints.has(name)) {
|
|
joint->sid=name; //kind of a cheat but..
|
|
joint->sid=name; //kind of a cheat but..
|
|
|
|
+ } else if (parser.has_attribute("name")) {
|
|
|
|
+ joint->sid=parser.get_attribute_value_safe("name");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
if (joint->sid!="") {
|
|
if (joint->sid!="") {
|
|
state.sid_to_node_map[joint->sid]=id;
|
|
state.sid_to_node_map[joint->sid]=id;
|