mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Use const references where possible for List range iterators
This commit is contained in:
parent
a0f7f42b84
commit
ac3322b0af
171 changed files with 649 additions and 650 deletions
|
|
@ -519,7 +519,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
|
|||
RS::get_singleton()->multimesh_set_mesh(mm, mesh_library->get_item_mesh(E->key())->get_rid());
|
||||
|
||||
int idx = 0;
|
||||
for (Pair<Transform3D, IndexKey> &F : E->get()) {
|
||||
for (const Pair<Transform3D, IndexKey> &F : E->get()) {
|
||||
RS::get_singleton()->multimesh_instance_set_transform(mm, idx, F.first);
|
||||
#ifdef TOOLS_ENABLED
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue