- fbx: improve logging
parent
9ea7fc2856
commit
51d84dcfc0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue