diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-14 07:39:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 07:39:54 +0200 |
commit | dd2aba021cade88b6b029071edde634197a253cd (patch) | |
tree | 866aa827dd2b25339a670efa8c5408bef6138577 /scene/3d/voxel_light_baker.cpp | |
parent | e036eb648b2437ef9a5a074df534a487465996b0 (diff) | |
parent | 7f72d6476b7bf5a248685e91a994ac4d73e50ff6 (diff) |
Merge pull request #18853 from YeldhamDev/gui_cppcheck_fixes
Fixed some warnings found with Cppcheck
Diffstat (limited to 'scene/3d/voxel_light_baker.cpp')
-rw-r--r-- | scene/3d/voxel_light_baker.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp index 13700e0bd3..670df5cc7f 100644 --- a/scene/3d/voxel_light_baker.cpp +++ b/scene/3d/voxel_light_baker.cpp @@ -2316,13 +2316,10 @@ Ref<MultiMesh> VoxelLightBaker::create_debug_multimesh(DebugMode p_mode) { PoolVector<Vector3> vertices; PoolVector<Color> colors; - - int vtx_idx = 0; #define ADD_VTX(m_idx) \ ; \ vertices.push_back(face_points[m_idx]); \ - colors.push_back(Color(1, 1, 1, 1)); \ - vtx_idx++; + colors.push_back(Color(1, 1, 1, 1)); for (int i = 0; i < 6; i++) { |