Fix FBX units not being converted from CM to application scale
parent
f119fedd55
commit
d56198774e
|
@ -193,8 +193,8 @@ void FBXImporter::InternReadFile( const std::string& pFile, aiScene* pScene, IOS
|
||||||
// convert the FBX DOM to aiScene
|
// convert the FBX DOM to aiScene
|
||||||
ConvertToAssimpScene(pScene, doc, settings.removeEmptyBones, unit);
|
ConvertToAssimpScene(pScene, doc, settings.removeEmptyBones, unit);
|
||||||
|
|
||||||
// Set file scale relative to meters
|
// units is relative to CM :) we need it in meters for assimp
|
||||||
SetFileScale( doc.GlobalSettings().UnitScaleFactor() );
|
SetFileScale( doc.GlobalSettings().UnitScaleFactor() * 0.01f);
|
||||||
|
|
||||||
std::for_each(tokens.begin(),tokens.end(),Util::delete_fun<Token>());
|
std::for_each(tokens.begin(),tokens.end(),Util::delete_fun<Token>());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue