closes https://github.com/assimp/assimp/issues/1320: check if all
exporters are disabled.pull/1327/merge
parent
616e62c4b8
commit
ac37e4ddba
|
@ -172,8 +172,10 @@ public:
|
||||||
GetPostProcessingStepInstanceList(mPostProcessingSteps);
|
GetPostProcessingStepInstanceList(mPostProcessingSteps);
|
||||||
|
|
||||||
// grab all built-in exporters
|
// grab all built-in exporters
|
||||||
mExporters.resize(ASSIMP_NUM_EXPORTERS);
|
if ( 0 != ( ASSIMP_NUM_EXPORTERS ) ) {
|
||||||
std::copy(gExporters,gExporters+ASSIMP_NUM_EXPORTERS,mExporters.begin());
|
mExporters.resize( ASSIMP_NUM_EXPORTERS );
|
||||||
|
std::copy( gExporters, gExporters + ASSIMP_NUM_EXPORTERS, mExporters.begin() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~ExporterPimpl()
|
~ExporterPimpl()
|
||||||
|
@ -187,7 +189,6 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
aiExportDataBlob* blob;
|
aiExportDataBlob* blob;
|
||||||
std::shared_ptr< Assimp::IOSystem > mIOSystem;
|
std::shared_ptr< Assimp::IOSystem > mIOSystem;
|
||||||
bool mIsDefaultIOHandler;
|
bool mIsDefaultIOHandler;
|
||||||
|
@ -408,6 +409,7 @@ aiReturn Exporter::Export( const aiScene* pScene, const char* pFormatId, const c
|
||||||
|
|
||||||
pimpl->mError = std::string("Found no exporter to handle this file format: ") + pFormatId;
|
pimpl->mError = std::string("Found no exporter to handle this file format: ") + pFormatId;
|
||||||
ASSIMP_END_EXCEPTION_REGION(aiReturn);
|
ASSIMP_END_EXCEPTION_REGION(aiReturn);
|
||||||
|
|
||||||
return AI_FAILURE;
|
return AI_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -492,7 +494,6 @@ ExportProperties::ExportProperties(const ExportProperties &other)
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Set a configuration property
|
// Set a configuration property
|
||||||
bool ExportProperties::SetPropertyInteger(const char* szName, int iValue) {
|
bool ExportProperties::SetPropertyInteger(const char* szName, int iValue) {
|
||||||
|
|
Loading…
Reference in New Issue