------------------------------------------------------------------------------------------------ Orphan the current scene and return it.
| 427 | // ------------------------------------------------------------------------------------------------ |
| 428 | // Orphan the current scene and return it. |
| 429 | aiScene* Importer::GetOrphanedScene() { |
| 430 | ai_assert(nullptr != pimpl); |
| 431 | |
| 432 | aiScene* s = pimpl->mScene; |
| 433 | |
| 434 | ASSIMP_BEGIN_EXCEPTION_REGION(); |
| 435 | pimpl->mScene = nullptr; |
| 436 | |
| 437 | pimpl->mErrorString = std::string(); |
| 438 | pimpl->mException = std::exception_ptr(); |
| 439 | ASSIMP_END_EXCEPTION_REGION(aiScene*); |
| 440 | |
| 441 | return s; |
| 442 | } |
| 443 | |
| 444 | // ------------------------------------------------------------------------------------------------ |
| 445 | // Validate post-processing flags |