You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
String: Add contains().
This commit is contained in:
@@ -732,7 +732,7 @@ void ClassDB::bind_integer_constant(const StringName &p_class, const StringName
|
||||
|
||||
String enum_name = p_enum;
|
||||
if (!enum_name.is_empty()) {
|
||||
if (enum_name.find(".") != -1) {
|
||||
if (enum_name.contains(".")) {
|
||||
enum_name = enum_name.get_slicec('.', 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user