You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -759,7 +759,7 @@ bool SceneTreeEditor::_item_matches_all_terms(TreeItem *p_item, const PackedStri
|
||||
const String &term = p_terms[i];
|
||||
|
||||
// Recognize special filter.
|
||||
if (term.contains(":") && !term.get_slicec(':', 0).is_empty()) {
|
||||
if (term.contains_char(':') && !term.get_slicec(':', 0).is_empty()) {
|
||||
String parameter = term.get_slicec(':', 0);
|
||||
String argument = term.get_slicec(':', 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user