Ignore FBX 'PP' type connections (they were stopping the file parsing)

pull/694/head
Otger 2015-11-24 17:51:11 +01:00
parent 3c358a8e34
commit a51d9a3884
1 changed files with 5 additions and 0 deletions

View File

@ -486,6 +486,11 @@ void Document::ReadConnections()
for(ElementMap::const_iterator it = conns.first; it != conns.second; ++it) {
const Element& el = *(*it).second;
const std::string& type = ParseTokenAsString(GetRequiredToken(el,0));
// PP = property-property connection, ignored for now
// (tokens: "PP", ID1, "Property1", ID2, "Property2")
if(type == "PP") continue;
const uint64_t src = ParseTokenAsID(GetRequiredToken(el,1));
const uint64_t dest = ParseTokenAsID(GetRequiredToken(el,2));