------------------------------------------------------------------------------------------------
| 594 | |
| 595 | // ------------------------------------------------------------------------------------------------ |
| 596 | void 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 | } |
no test coverage detected