aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/baked_light_baker.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-09-10 12:21:02 -0300
committerGitHub2016-09-10 12:21:02 -0300
commitfc61eb37ce004ecfa0656a46c68d111c68bb5c19 (patch)
tree0aa31fc3891596abca39042f27404f329e002b2d /tools/editor/plugins/baked_light_baker.cpp
parent026c7913cf6f38b948d66484d97d7841fa1c9f16 (diff)
parenta4674bda47ddeed7cc929bafdcd89b6bd156ee30 (diff)
downloadgodot-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.cpp4
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)) {