diff --git a/dtool/src/dtoolutil/filename.cxx b/dtool/src/dtoolutil/filename.cxx index 0a9a15a00f..d6db0f7dcb 100644 --- a/dtool/src/dtoolutil/filename.cxx +++ b/dtool/src/dtoolutil/filename.cxx @@ -1022,12 +1022,10 @@ resolve_filename(const DSearchPath &searchpath, found = searchpath.find_file(try_ext.get_fullpath()); } } - } else { if (exists()) { // The full pathname exists. Return true. return true; - } else { // The full pathname doesn't exist with the given extension; // does it exist with the default extension?