We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c2fb5 commit ef9d61fCopy full SHA for ef9d61f
1 file changed
Samples/GLTFViewer/src/GLTFViewer.cpp
@@ -257,10 +257,13 @@ void GLTFViewer::UpdateModelsList(const std::string& Dir)
257
#if PLATFORM_WIN32 || PLATFORM_LINUX || PLATFORM_MACOS
258
if (!Dir.empty())
259
{
260
- FileSystem::SearchFilesResult SearchRes = FileSystem::SearchRecursive(Dir.c_str(), "*.gltf");
261
- for (const auto& File : SearchRes)
+ for (const char* pattern : {"*.glb", "*.gltf"})
262
263
- m_Models.push_back(ModelInfo{File.Name, Dir + FileSystem::SlashSymbol + File.Name});
+ FileSystem::SearchFilesResult SearchRes = FileSystem::SearchRecursive(Dir.c_str(), pattern);
+ for (const auto& File : SearchRes)
264
+ {
265
+ m_Models.push_back(ModelInfo{File.Name, Dir + FileSystem::SlashSymbol + File.Name});
266
+ }
267
}
268
269
#endif
0 commit comments