You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Use range iterators for Map
This commit is contained in:
@@ -157,8 +157,8 @@ void TriangleMesh::create(const Vector<Vector3> &p_faces) {
|
||||
|
||||
vertices.resize(db.size());
|
||||
Vector3 *vw = vertices.ptrw();
|
||||
for (Map<Vector3, int>::Element *E = db.front(); E; E = E->next()) {
|
||||
vw[E->get()] = E->key();
|
||||
for (const KeyValue<Vector3, int> &E : db) {
|
||||
vw[E.value] = E.key;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user