mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix range loop iteration regressions
This commit is contained in:
parent
10d22a4b35
commit
8c25bcdb84
@ -151,7 +151,7 @@ void Geometry3D::MeshData::optimize_vertices() {
|
||||
}
|
||||
}
|
||||
|
||||
for (MeshData::Edge edge : edges) {
|
||||
for (MeshData::Edge &edge : edges) {
|
||||
int a = edge.vertex_a;
|
||||
int b = edge.vertex_b;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user