1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

ResourceFormatLoaderImage::get_resource_type now uses file path

This commit is contained in:
willnationsdev
2018-08-04 15:14:28 -05:00
parent 7c712a25bc
commit 417e5457b8

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();
}