summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2018-08-04 22:34:21 +0200
committerGitHub <noreply@github.com>2018-08-04 22:34:21 +0200
commita3bd9c27a3b95a0ff0398c074d206d56a79dcc2e (patch)
tree77affdfab21f87375f9e70ba9ce3b0ff5f083b07 /core
parent150da987c933e954fa4a2f172985798af6f99f75 (diff)
parent417e5457b805eb21093e0787aeab09a49162baf9 (diff)
Merge pull request #20721 from willnationsdev/fix-image-loader
ResourceFormatLoaderImage::get_resource_type now uses file path
Diffstat (limited to 'core')
-rw-r--r--core/io/image_loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/image_loader.cpp b/core/io/image_loader.cpp
index 614fbb771f..b8fd13d67c 100644
--- a/core/io/image_loader.cpp
+++ b/core/io/image_loader.cpp
@@ -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();
}