You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -292,7 +292,7 @@ void ShaderCreateDialog::_type_changed(int p_language) {
|
||||
String extension = "";
|
||||
|
||||
if (!path.is_empty()) {
|
||||
if (path.contains(".")) {
|
||||
if (path.contains_char('.')) {
|
||||
extension = path.get_extension();
|
||||
}
|
||||
if (extension.length() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user