diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 01:11:25 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 01:11:25 +0100 |
commit | 31496c296ad8e18b767fabce996bbce46b10cdf4 (patch) | |
tree | 3770d3e55362b4832b290623bf48f07fdaeaeb08 /servers/rendering/renderer_rd | |
parent | 4b0363312e9d13349cc7e1cfeff03168206a4da5 (diff) | |
parent | 8c25bcdb8484e1cfd0a2d14398a3423d2df9b4c5 (diff) |
Merge pull request #72078 from bitsawer/fix_optimize_vertices
Fix range loop iteration regressions
Diffstat (limited to 'servers/rendering/renderer_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); |