MCPcopy Create free account
hub / github.com/assimp/assimp / GetOrphanedScene

Method GetOrphanedScene

code/Common/Importer.cpp:429–442  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Orphan the current scene and return it.

Source from the content-addressed store, hash-verified

427// ------------------------------------------------------------------------------------------------
428// Orphan the current scene and return it.
429aiScene* 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

Callers 2

TEST_FFunction · 0.80
LoadAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected