From 51d84dcfc07eec526da50398d57a7d24a17a7c8f Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Sun, 26 Aug 2012 17:54:17 +0200 Subject: [PATCH] - fbx: improve logging --- code/FBXDocument.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/FBXDocument.cpp b/code/FBXDocument.cpp index 051a51110..ea4b56631 100644 --- a/code/FBXDocument.cpp +++ b/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) {