| 214 | } // anonymous namespace |
| 215 | |
| 216 | Result fromAnySupportedFormat( const std::vector<std::filesystem::path>& files, const Settings& settings ) |
| 217 | { |
| 218 | SceneConstructor constructor( settings.targetUnit ); |
| 219 | for ( auto index = 0ull; index < files.size(); ++index ) |
| 220 | { |
| 221 | const auto& path = files[index]; |
| 222 | if ( path.empty() ) |
| 223 | continue; |
| 224 | constructor.process( path, sLoadPath( path, settings.openFolder, subprogress( settings.progress, index, files.size() ) ) ); |
| 225 | } |
| 226 | return constructor.construct(); |
| 227 | } |
| 228 | |
| 229 | void asyncFromAnySupportedFormat( const std::vector<std::filesystem::path>& files, |
| 230 | const SceneLoad::PostLoadCallback& postLoadCallback, const Settings& settings ) |