diff options
| author | Juan Linietsky | 2016-09-10 12:21:02 -0300 |
|---|---|---|
| committer | GitHub | 2016-09-10 12:21:02 -0300 |
| commit | fc61eb37ce004ecfa0656a46c68d111c68bb5c19 (patch) | |
| tree | 0aa31fc3891596abca39042f27404f329e002b2d /tools/editor/plugins/baked_light_baker.cpp | |
| parent | 026c7913cf6f38b948d66484d97d7841fa1c9f16 (diff) | |
| parent | a4674bda47ddeed7cc929bafdcd89b6bd156ee30 (diff) | |
| download | godot-fc61eb37ce004ecfa0656a46c68d111c68bb5c19.tar.gz godot-fc61eb37ce004ecfa0656a46c68d111c68bb5c19.tar.zst godot-fc61eb37ce004ecfa0656a46c68d111c68bb5c19.zip | |
Merge pull request #5920 from 29jm/fix-warnings
Fix some more warnings
Diffstat (limited to 'tools/editor/plugins/baked_light_baker.cpp')
| -rw-r--r-- | tools/editor/plugins/baked_light_baker.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/editor/plugins/baked_light_baker.cpp b/tools/editor/plugins/baked_light_baker.cpp index a2e94e885..f43bec1cd 100644 --- a/tools/editor/plugins/baked_light_baker.cpp +++ b/tools/editor/plugins/baked_light_baker.cpp @@ -1177,8 +1177,6 @@ float BakedLightBaker::_throw_ray(ThreadStack& thread_stack,bool p_bake_direct,c diffuse_at_point.g=res_light.g*diffuse_at_point.g; diffuse_at_point.b=res_light.b*diffuse_at_point.b; - float ret=1e6; - if (p_bounces>0) { @@ -1220,7 +1218,7 @@ float BakedLightBaker::_throw_ray(ThreadStack& thread_stack,bool p_bake_direct,c #endif - ret=_throw_ray(thread_stack,p_bake_direct,r_point,r_point+rn*p_rest,p_rest,diffuse_at_point,p_att_curve,p_att_pos,p_att_curve_len,p_bounces-1); + _throw_ray(thread_stack,p_bake_direct,r_point,r_point+rn*p_rest,p_rest,diffuse_at_point,p_att_curve,p_att_pos,p_att_curve_len,p_bounces-1); } if (use_specular && (specular_at_point.r>CMP_EPSILON || specular_at_point.g>CMP_EPSILON || specular_at_point.b>CMP_EPSILON)) { |
