MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / LoadAll

Method LoadAll

Engine/lib/assimp/code/Common/BaseImporter.cpp:596–622  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

594
595// ------------------------------------------------------------------------------------------------
596void BatchLoader::LoadAll() {
597 // no threaded implementation for the moment
598 for (LoadReqIt it = m_data->requests.begin(); it != m_data->requests.end(); ++it) {
599 // force validation in debug builds
600 unsigned int pp = (*it).flags;
601 if (m_data->validate) {
602 pp |= aiProcess_ValidateDataStructure;
603 }
604
605 // setup config properties if necessary
606 ImporterPimpl *pimpl = m_data->pImporter->Pimpl();
607 pimpl->mFloatProperties = (*it).map.floats;
608 pimpl->mIntProperties = (*it).map.ints;
609 pimpl->mStringProperties = (*it).map.strings;
610 pimpl->mMatrixProperties = (*it).map.matrices;
611
612 if (!DefaultLogger::isNullLogger()) {
613 ASSIMP_LOG_INFO("%%% BEGIN EXTERNAL FILE %%%");
614 ASSIMP_LOG_INFO("File: ", (*it).file);
615 }
616 m_data->pImporter->ReadFile((*it).file, pp);
617 (*it).scene = m_data->pImporter->GetOrphanedScene();
618 (*it).loaded = true;
619
620 ASSIMP_LOG_INFO("%%% END EXTERNAL FILE %%%");
621 }
622}

Callers 3

InternReadFileMethod · 0.80
ReadMultipartFileMethod · 0.80
InternReadFileMethod · 0.80

Calls 4

GetOrphanedSceneMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
ReadFileMethod · 0.45

Tested by

no test coverage detected