FBX: make clear that we do not support 6.n file format, closes #93.
parent
586753bc19
commit
fcedc7e8a6
|
@ -290,14 +290,19 @@ void Document::ReadHeader()
|
||||||
const Scope& shead = *ehead->Compound();
|
const Scope& shead = *ehead->Compound();
|
||||||
fbxVersion = ParseTokenAsInt(GetRequiredToken(GetRequiredElement(shead,"FBXVersion",ehead),0));
|
fbxVersion = ParseTokenAsInt(GetRequiredToken(GetRequiredElement(shead,"FBXVersion",ehead),0));
|
||||||
|
|
||||||
|
// while we maye have some success with newer files, we don't support
|
||||||
if(fbxVersion < 7200 || fbxVersion > 7300) {
|
// 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) {
|
if(Settings().strictMode) {
|
||||||
DOMError("unsupported format version, supported are only FBX 2012 and FBX 2013"\
|
DOMError("unsupported, newer format version, supported are only FBX 2012 and FBX 2013"
|
||||||
" in ASCII format (turn off strict mode to try anyhow) ");
|
" (turn off strict mode to try anyhow) ");
|
||||||
}
|
}
|
||||||
else {
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue