diff options
author | bitsawer <sawerduster@gmail.com> | 2023-01-25 23:17:53 +0200 |
---|---|---|
committer | bitsawer <sawerduster@gmail.com> | 2023-01-26 00:14:39 +0200 |
commit | 8c25bcdb8484e1cfd0a2d14398a3423d2df9b4c5 (patch) | |
tree | bce437b285c0664072a14347fb3400185f106d05 /servers/rendering/renderer_rd/storage_rd | |
parent | 10d22a4b35b33ad89f626c261ef7f1aeae81daf3 (diff) |
Fix range loop iteration regressions
Diffstat (limited to 'servers/rendering/renderer_rd/storage_rd')
-rw-r--r-- | servers/rendering/renderer_rd/storage_rd/mesh_storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/storage_rd/mesh_storage.cpp b/servers/rendering/renderer_rd/storage_rd/mesh_storage.cpp index 46a0d85ba8..2015a2fca0 100644 --- a/servers/rendering/renderer_rd/storage_rd/mesh_storage.cpp +++ b/servers/rendering/renderer_rd/storage_rd/mesh_storage.cpp @@ -842,7 +842,7 @@ void MeshStorage::mesh_instance_set_blend_shape_weight(RID p_mesh_instance, int } void MeshStorage::_mesh_instance_clear(MeshInstance *mi) { - for (const RendererRD::MeshStorage::MeshInstance::Surface surface : mi->surfaces) { + for (const RendererRD::MeshStorage::MeshInstance::Surface &surface : mi->surfaces) { if (surface.versions) { for (uint32_t j = 0; j < surface.version_count; j++) { RD::get_singleton()->free(surface.versions[j].vertex_array); |