Add has_extension() method to String
This commit is contained in:
@@ -553,7 +553,7 @@ bool ResourceFormatKTX::handles_type(const String &p_type) const {
|
||||
}
|
||||
|
||||
String ResourceFormatKTX::get_resource_type(const String &p_path) const {
|
||||
if (p_path.get_extension().to_lower() == "ktx" || p_path.get_extension().to_lower() == "ktx2") {
|
||||
if (p_path.has_extension("ktx") || p_path.has_extension("ktx2")) {
|
||||
return "ImageTexture";
|
||||
}
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user