Forráskód Böngészése

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

Otger 9 éve
szülő
commit
a51d9a3884
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      code/FBXDocument.cpp

+ 5 - 0
code/FBXDocument.cpp

@@ -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));