From c5d58f6d9d470b6c839c71d390ed27acbaf7676f Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Tue, 23 Aug 2022 23:36:00 +0100 Subject: [PATCH] Fix shadowing warning --- edition/voxel_tool_lod_terrain.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/edition/voxel_tool_lod_terrain.cpp b/edition/voxel_tool_lod_terrain.cpp index 61bc2cb5..baceb33e 100644 --- a/edition/voxel_tool_lod_terrain.cpp +++ b/edition/voxel_tool_lod_terrain.cpp @@ -854,11 +854,11 @@ void VoxelToolLodTerrain::do_graph(Ref graph, Transform3D t // Transform positions to be local to the graph for (unsigned int i = 0; i < deck_area; ++i) { - Vector3 pos(in_x[i], in_y[i], in_z[i]); - pos = inv_transform.xform(pos); - in_x[i] = pos.x; - in_y[i] = pos.y; - in_z[i] = pos.z; + Vector3 graph_local_pos(in_x[i], in_y[i], in_z[i]); + graph_local_pos = inv_transform.xform(pos); + in_x[i] = graph_local_pos.x; + in_y[i] = graph_local_pos.y; + in_z[i] = graph_local_pos.z; } // Get SDF input