summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorwillnationsdev <willnationsdev@gmail.com>2018-08-04 15:14:28 -0500
committerwillnationsdev <willnationsdev@gmail.com>2018-08-04 15:14:28 -0500
commit417e5457b805eb21093e0787aeab09a49162baf9 (patch)
treeab001ac4ee8c54925332926df24f5a7a76b8060e /core/io
parent7c712a25bc40c4d8e09867b61c941af06c6799f5 (diff)
ResourceFormatLoaderImage::get_resource_type now uses file path
Diffstat (limited to 'core/io')
-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();
}