diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-04 14:19:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 14:19:05 +0200 |
commit | 181af9b48431a5697056c561c9e2edafc7d738f0 (patch) | |
tree | d184ffe31ecab4cbcb194fa67f294b80b505cc51 /scene/3d | |
parent | 674b2567ae9fc367c01de1a70f83a62d8a6de071 (diff) | |
parent | f48ee838e7b88a630f9dea76b697eb4626d69abc (diff) |
Merge pull request #22713 from akien-mga/fix-warnings
Fix GCC 8 warnings about potentially unitialized variables
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/voxel_light_baker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp index 68359eac52..5580cabe30 100644 --- a/scene/3d/voxel_light_baker.cpp +++ b/scene/3d/voxel_light_baker.cpp @@ -1589,8 +1589,8 @@ Vector3 VoxelLightBaker::_compute_pixel_light_at_pos(const Vector3 &p_pos, const const Vector3 *cone_dirs; const float *cone_weights; - int cone_dir_count; - float cone_aperture; + int cone_dir_count = 0; + float cone_aperture = 0; switch (bake_quality) { case BAKE_QUALITY_LOW: { |