summaryrefslogtreecommitdiffstats
path: root/scene/resources/mesh.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
commita9a1d0a162ef6be57374519589c538205e65a7fc (patch)
tree1789441c8af84b396ca21892c332c0583abb9c48 /scene/resources/mesh.cpp
parent1d101329c96460a8b00a8dec5ff8808a589ee505 (diff)
parenta0dbdcc3abbd3e6307c6e68d0e60f8c0fa31d576 (diff)
downloadredot-engine-a9a1d0a162ef6be57374519589c538205e65a7fc.tar.gz
Merge pull request #91619 from AThousandShips/find_improve
Replace `find` with `contains/has` where applicable
Diffstat (limited to 'scene/resources/mesh.cpp')
-rw-r--r--scene/resources/mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp
index 73f3009fd1..8b5e438aea 100644
--- a/scene/resources/mesh.cpp
+++ b/scene/resources/mesh.cpp
@@ -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;