------------------------------------------------------------------------------------------------
| 327 | |
| 328 | // ------------------------------------------------------------------------------------------------ |
| 329 | ASSIMP_API const aiScene *aiApplyCustomizedPostProcessing(const aiScene *scene, |
| 330 | BaseProcess *process, |
| 331 | bool requestValidation) { |
| 332 | const aiScene *sc(nullptr); |
| 333 | |
| 334 | ASSIMP_BEGIN_EXCEPTION_REGION(); |
| 335 | |
| 336 | // find the importer associated with this data |
| 337 | const ScenePrivateData *priv = ScenePriv(scene); |
| 338 | if (nullptr == priv || nullptr == priv->mOrigImporter) { |
| 339 | ReportSceneNotFoundError(); |
| 340 | return nullptr; |
| 341 | } |
| 342 | |
| 343 | sc = priv->mOrigImporter->ApplyCustomizedPostProcessing(process, requestValidation); |
| 344 | |
| 345 | if (!sc) { |
| 346 | aiReleaseImport(scene); |
| 347 | return nullptr; |
| 348 | } |
| 349 | |
| 350 | ASSIMP_END_EXCEPTION_REGION(const aiScene *); |
| 351 | |
| 352 | return sc; |
| 353 | } |
| 354 | |
| 355 | // ------------------------------------------------------------------------------------------------ |
| 356 | void CallbackToLogRedirector(const char *msg, char *dt) { |
nothing calls this directly
no test coverage detected