mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 12:39:49 -06:00
SceneLoader: Fix bug when loading directory with subdirectories
This commit is contained in:
@@ -219,7 +219,7 @@ std::vector<SceneLoader::LoadedNode> SceneLoader::loadDirectory(
|
||||
const Directory directory(path);
|
||||
const std::string directoryPath = directory.path();
|
||||
|
||||
if (!FileSys.fileExists(directoryPath)) {
|
||||
if (!FileSys.directoryExists(directoryPath)) {
|
||||
LERROR("The directory " << directoryPath << " does not exist.");
|
||||
return std::vector<SceneLoader::LoadedNode>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user