Fix: Collada Import of armatures only added the root bone

This commit is contained in:
Gaia Clary 2013-02-11 20:21:10 +00:00
parent b063bdbb5f
commit 3dfd736d45

@ -583,12 +583,17 @@ std::vector<Object *> *DocumentImporter::write_node(COLLADAFW::Node *node, COLLA
}
// if node has child nodes write them
COLLADAFW::NodePointerArray &child_nodes = node->getChildNodes();
if (objects_done->size() > 0) {
ob = *objects_done->begin();
}
else {
ob = NULL;
}
for (unsigned int i = 0; i < child_nodes.getCount(); i++) {
write_node(child_nodes[i], node, sce, ob, is_library_node);
}
}
return objects_done;
}