Browse Source

- fbx: improve logging

Alexander Gessler 13 years ago
parent
commit
51d84dcfc0
1 changed files with 7 additions and 2 deletions
  1. 7 2
      code/FBXDocument.cpp

+ 7 - 2
code/FBXDocument.cpp

@@ -287,12 +287,17 @@ void Document::ReadHeader()
 	const Scope& shead = *ehead->Compound();
 	fbxVersion = ParseTokenAsInt(GetRequiredToken(GetRequiredElement(shead,"FBXVersion",ehead),0));
 
-	if(Settings().strictMode) {
-		if(fbxVersion < 7200 || fbxVersion > 7300) {
+	
+	if(fbxVersion < 7200 || fbxVersion > 7300) {
+		if(Settings().strictMode) {
 			DOMError("unsupported format version, supported are only FBX 2012 and FBX 2013"\
 				" in ASCII format (turn off strict mode to try anyhow) ");
 		}
+		else {
+			DOMWarning("unsupported format version, supported are only FBX 2012 and FBX 2013, trying to read it nevertheless");
+		}
 	}
+	
 
 	const Element* const ecreator = shead["Creator"];
 	if(ecreator) {