You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Replace find with contains/has where applicable
* Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
This commit is contained in:
@@ -1880,7 +1880,7 @@ void ArrayMesh::set_blend_shape_name(int p_index, const StringName &p_name) {
|
||||
do {
|
||||
shape_name = String(p_name) + " " + itos(count);
|
||||
count++;
|
||||
} while (blend_shapes.find(shape_name) != -1);
|
||||
} while (blend_shapes.has(shape_name));
|
||||
}
|
||||
|
||||
blend_shapes.write[p_index] = shape_name;
|
||||
|
||||
Reference in New Issue
Block a user