diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-03 22:21:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 22:21:24 +0100 |
commit | f8f19b313d62b707467c54d245b9c3e0ad53f34f (patch) | |
tree | 975f9c64fe51c3809c7c3b2eb0cd46d3563d2bd2 /editor/shader_create_dialog.cpp | |
parent | 025e778020dde6dcee89f5ae1e2a63ccddc24340 (diff) | |
parent | adbe948bda202209b55249198e1837324e703ddb (diff) |
Merge pull request #57562 from AnilBK/string-add-contains
String: Add contains().
Diffstat (limited to 'editor/shader_create_dialog.cpp')
-rw-r--r-- | editor/shader_create_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/shader_create_dialog.cpp b/editor/shader_create_dialog.cpp index 239860c9ab..95c4c5ff0d 100644 --- a/editor/shader_create_dialog.cpp +++ b/editor/shader_create_dialog.cpp @@ -221,7 +221,7 @@ void ShaderCreateDialog::_language_changed(int p_language) { String extension = ""; if (!path.is_empty()) { - if (path.find(".") != -1) { + if (path.contains(".")) { extension = path.get_extension(); } if (extension.length() == 0) { |