Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
This commit is contained in:
@ -735,7 +735,7 @@ bool ResourceFormatDDS::handles_type(const String &p_type) const {
|
||||
}
|
||||
|
||||
String ResourceFormatDDS::get_resource_type(const String &p_path) const {
|
||||
if (p_path.get_extension().to_lower() == "dds") {
|
||||
if (p_path.has_extension("dds")) {
|
||||
return "Texture";
|
||||
}
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user