------------------------------------------------------------------------------------------------
| 302 | |
| 303 | // ------------------------------------------------------------------------------------------------ |
| 304 | ASSIMP_API const aiScene *aiApplyPostProcessing(const aiScene *pScene, |
| 305 | unsigned int pFlags) { |
| 306 | const aiScene *sc = nullptr; |
| 307 | |
| 308 | ASSIMP_BEGIN_EXCEPTION_REGION(); |
| 309 | |
| 310 | // find the importer associated with this data |
| 311 | const ScenePrivateData *priv = ScenePriv(pScene); |
| 312 | if (!priv || !priv->mOrigImporter) { |
| 313 | ReportSceneNotFoundError(); |
| 314 | return nullptr; |
| 315 | } |
| 316 | |
| 317 | sc = priv->mOrigImporter->ApplyPostProcessing(pFlags); |
| 318 | |
| 319 | if (!sc) { |
| 320 | aiReleaseImport(pScene); |
| 321 | return nullptr; |
| 322 | } |
| 323 | |
| 324 | ASSIMP_END_EXCEPTION_REGION(const aiScene *); |
| 325 | return sc; |
| 326 | } |
| 327 | |
| 328 | // ------------------------------------------------------------------------------------------------ |
| 329 | ASSIMP_API const aiScene *aiApplyCustomizedPostProcessing(const aiScene *scene, |
nothing calls this directly
no test coverage detected