- fbx: fix bug that caused textures to be ignored in some cases.

This commit is contained in:
Alexander Gessler
2012-07-04 01:45:15 +02:00
parent c7ee6fd70f
commit 2f5ec6f136
3 changed files with 22 additions and 5 deletions

View File

@@ -464,6 +464,10 @@ Document::Document(const Parser& parser, const ImportSettings& settings)
, settings(settings)
{
ReadPropertyTemplates();
// this order is important, connections need parsed objects to check
// whether connections are ok or not. Objects may not be evaluated yet,
// though, since this may require valid connections.
ReadObjects();
ReadConnections();
}
@@ -506,8 +510,6 @@ void Document::ReadObjects()
}
objects[id] = new LazyObject(id, *el.second, *this);
// DEBUG - evaluate all objects
const Object* o = objects[id]->Get();
}
}