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

Method GetImport

code/Common/BaseImporter.cpp:610–621  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

608
609// ------------------------------------------------------------------------------------------------
610aiScene *BatchLoader::GetImport(unsigned int which) {
611 for (LoadReqIt it = m_data->requests.begin(); it != m_data->requests.end(); ++it) {
612 if ((*it).id == which && (*it).loaded) {
613 aiScene *sc = (*it).scene;
614 if (!(--(*it).refCnt)) {
615 m_data->requests.erase(it);
616 }
617 return sc;
618 }
619 }
620 return nullptr;
621}
622
623// ------------------------------------------------------------------------------------------------
624void BatchLoader::LoadAll() {

Callers 3

GenerateGraphMethod · 0.80
ReadMultipartFileMethod · 0.80
BuildGraphMethod · 0.80

Calls 3

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected