- fbx: add import settings to public assimp config interface.
This commit is contained in:
@@ -231,8 +231,13 @@ private:
|
||||
// attach sub-nodes
|
||||
ConvertNodes(model->ID(), *nodes_chain.back(), new_abs_transform);
|
||||
|
||||
ConvertLights(*model);
|
||||
ConvertCameras(*model);
|
||||
if(doc.Settings().readLights) {
|
||||
ConvertLights(*model);
|
||||
}
|
||||
|
||||
if(doc.Settings().readCameras) {
|
||||
ConvertCameras(*model);
|
||||
}
|
||||
|
||||
nodes.push_back(nodes_chain.front());
|
||||
nodes_chain.clear();
|
||||
|
||||
@@ -123,7 +123,15 @@ const aiImporterDesc* FBXImporter::GetInfo () const
|
||||
// Setup configuration properties for the loader
|
||||
void FBXImporter::SetupProperties(const Importer* pImp)
|
||||
{
|
||||
// no tweakables yet
|
||||
settings.readAllLayers = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS, true);
|
||||
settings.readAllMaterials = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_READ_ALL_MATERIALS, false);
|
||||
settings.readMaterials = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_READ_MATERIALS, true);
|
||||
settings.readCameras = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_READ_CAMERAS, true);
|
||||
settings.readLights = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_READ_LIGHTS, true);
|
||||
settings.readAnimations = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_READ_ANIMATIONS, true);
|
||||
settings.strictMode = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_STRICT_MODE, false);
|
||||
settings.preservePivots = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_PRESERVE_PIVOTS, true);
|
||||
settings.optimizeEmptyAnimationCurves = pImp->GetPropertyBool(AI_CONFIG_IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user