From fcedc7e8a6a809d962c72bec081a3116c86ed5d2 Mon Sep 17 00:00:00 2001 From: acgessler Date: Wed, 2 Oct 2013 17:09:10 +0200 Subject: [PATCH] FBX: make clear that we do not support 6.n file format, closes #93. --- code/FBXDocument.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/code/FBXDocument.cpp b/code/FBXDocument.cpp index 49f4afe14..5dab5bd0c 100644 --- a/code/FBXDocument.cpp +++ b/code/FBXDocument.cpp @@ -290,14 +290,19 @@ void Document::ReadHeader() const Scope& shead = *ehead->Compound(); fbxVersion = ParseTokenAsInt(GetRequiredToken(GetRequiredElement(shead,"FBXVersion",ehead),0)); - - if(fbxVersion < 7200 || fbxVersion > 7300) { + // while we maye have some success with newer files, we don't support + // the older 6.n fbx format + if(fbxVersion < 7200) { + DOMError("unsupported, old format version, supported are only FBX 2012 and FBX 2013"); + } + if(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) "); + DOMError("unsupported, newer format version, supported are only FBX 2012 and FBX 2013" + " (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"); + DOMWarning("unsupported, newer format version, supported are only FBX 2012 and FBX 2013," + " trying to read it nevertheless"); } }