Merge pull request #20721 from willnationsdev/fix-image-loader

ResourceFormatLoaderImage::get_resource_type now uses file path
This commit is contained in:
Thomas Herzog 2018-08-04 22:34:21 +02:00 committed by GitHub
commit a3bd9c27a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -185,5 +185,5 @@ bool ResourceFormatLoaderImage::handles_type(const String &p_type) const {
String ResourceFormatLoaderImage::get_resource_type(const String &p_path) const {
return "Image";
return p_path.get_extension().to_lower() == "image" ? "Image" : String();
}