------------------------------------------------------------------------------------------------
| 622 | |
| 623 | // ------------------------------------------------------------------------------------------------ |
| 624 | void BatchLoader::LoadAll() { |
| 625 | // no threaded implementation for the moment |
| 626 | for (LoadReqIt it = m_data->requests.begin(); it != m_data->requests.end(); ++it) { |
| 627 | // force validation in debug builds |
| 628 | unsigned int pp = (*it).flags; |
| 629 | if (m_data->validate) { |
| 630 | pp |= aiProcess_ValidateDataStructure; |
| 631 | } |
| 632 | |
| 633 | // setup config properties if necessary |
| 634 | ImporterPimpl *pimpl = m_data->pImporter->Pimpl(); |
| 635 | pimpl->mFloatProperties = (*it).map.floats; |
| 636 | pimpl->mIntProperties = (*it).map.ints; |
| 637 | pimpl->mStringProperties = (*it).map.strings; |
| 638 | pimpl->mMatrixProperties = (*it).map.matrices; |
| 639 | |
| 640 | if (!DefaultLogger::isNullLogger()) { |
| 641 | ASSIMP_LOG_INFO("%%% BEGIN EXTERNAL FILE %%%"); |
| 642 | ASSIMP_LOG_INFO("File: ", (*it).file); |
| 643 | } |
| 644 | m_data->pImporter->ReadFile((*it).file, pp); |
| 645 | (*it).scene = m_data->pImporter->GetOrphanedScene(); |
| 646 | (*it).loaded = true; |
| 647 | |
| 648 | ASSIMP_LOG_INFO("%%% END EXTERNAL FILE %%%"); |
| 649 | } |
| 650 | } |
no test coverage detected