diff --git a/kramv/KramViewerMain.mm b/kramv/KramViewerMain.mm index 67815c74..2b40d039 100644 --- a/kramv/KramViewerMain.mm +++ b/kramv/KramViewerMain.mm @@ -3105,7 +3105,7 @@ - (BOOL)loadTextureFromURL:(NSURL *)url while (NSURL* fileOrDirectoryURL = [directoryEnumerator nextObject]) { const char* name = fileOrDirectoryURL.fileSystemRepresentation; - bool isModel = isSupportedModelFilename(filename); + bool isModel = isSupportedModelFilename(name); if (isModel) { files.push_back(name);