mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
This commit is contained in:
@@ -121,8 +121,7 @@ bool ResourceFormatLoaderShaderInclude::handles_type(const String &p_type) const
|
||||
}
|
||||
|
||||
String ResourceFormatLoaderShaderInclude::get_resource_type(const String &p_path) const {
|
||||
String extension = p_path.get_extension().to_lower();
|
||||
if (extension == "gdshaderinc") {
|
||||
if (p_path.has_extension("gdshaderinc")) {
|
||||
return "ShaderInclude";
|
||||
}
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user