From cd45c37881cc782a0c9d401a3ab3ef1d6bf514af Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 14 Apr 2022 01:43:40 +0200 Subject: [PATCH] Fix shadowed declaration warning. --- modules/mesh_data_resource/editor/mdi_gizmo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/mesh_data_resource/editor/mdi_gizmo.cpp b/modules/mesh_data_resource/editor/mdi_gizmo.cpp index 9a5a623de..39cd57866 100644 --- a/modules/mesh_data_resource/editor/mdi_gizmo.cpp +++ b/modules/mesh_data_resource/editor/mdi_gizmo.cpp @@ -1210,15 +1210,15 @@ void MDIGizmo::extrude() { // Calculate avg Vector3 vavg; - for (int i = 0; i < found_verts.size(); ++i) { - vavg += new_verts[found_verts[i]]; + for (int ic = 0; ic < found_verts.size(); ++ic) { + vavg += new_verts[found_verts[ic]]; } vavg /= found_verts.size(); // set back - for (int i = 0; i < found_verts.size(); ++i) { - new_verts[found_verts[i]] = vavg; + for (int ic = 0; ic < found_verts.size(); ++ic) { + new_verts[found_verts[ic]] = vavg; } }