Skip to content

Commit

Permalink
kramv - fix directory listing for gltf
Browse files Browse the repository at this point in the history
If files have gltf, then don't list png's they reference
  • Loading branch information
alecazam committed May 7, 2022
1 parent c4b2e4d commit 2cd9ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kramv/KramViewerMain.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2cd9ce0

Please sign in to comment.