mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
Fix shadowed declaration warning.
This commit is contained in:
parent
93652c7f03
commit
cd45c37881
@ -1210,15 +1210,15 @@ void MDIGizmo::extrude() {
|
|||||||
|
|
||||||
// Calculate avg
|
// Calculate avg
|
||||||
Vector3 vavg;
|
Vector3 vavg;
|
||||||
for (int i = 0; i < found_verts.size(); ++i) {
|
for (int ic = 0; ic < found_verts.size(); ++ic) {
|
||||||
vavg += new_verts[found_verts[i]];
|
vavg += new_verts[found_verts[ic]];
|
||||||
}
|
}
|
||||||
|
|
||||||
vavg /= found_verts.size();
|
vavg /= found_verts.size();
|
||||||
|
|
||||||
// set back
|
// set back
|
||||||
for (int i = 0; i < found_verts.size(); ++i) {
|
for (int ic = 0; ic < found_verts.size(); ++ic) {
|
||||||
new_verts[found_verts[i]] = vavg;
|
new_verts[found_verts[ic]] = vavg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user