mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-25 06:19:02 -06:00
Add check for if image data folder is empty. This fixes issue #1933
This commit is contained in:
@@ -229,7 +229,7 @@ void WwtDataHandler::loadImages(const std::string& root,
|
||||
const std::filesystem::path& directory)
|
||||
{
|
||||
// Collect the wtml files, either by reading from disc or from a url
|
||||
if (directoryExists(directory)) {
|
||||
if (directoryExists(directory) && !std::filesystem::is_empty(directory)) {
|
||||
parseWtmlsFromDisc(_xmls, directory);
|
||||
LINFO("Loading images from directory");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user