- fbx: improved DOM object construction and dependency resolution.

This commit is contained in:
Alexander Gessler
2012-07-21 20:02:00 +02:00
parent 5db5634494
commit 09aaaba7b8
5 changed files with 115 additions and 61 deletions

View File

@@ -89,8 +89,10 @@ Model::~Model()
// ------------------------------------------------------------------------------------------------
void Model::ResolveLinks(const Element& element, const Document& doc)
{
const char* const arr[] = {"Geometry","Material"};
// resolve material
const std::vector<const Connection*>& conns = doc.GetConnectionsByDestinationSequenced(ID());
const std::vector<const Connection*>& conns = doc.GetConnectionsByDestinationSequenced(ID(),arr, 2);
materials.reserve(conns.size());
geometry.reserve(conns.size());