aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/baked_light_instance.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-10-17 10:29:54 -0300
committerJuan Linietsky2015-10-17 10:29:54 -0300
commitab22203791489df160c36a29a3cd8aa8b32bec04 (patch)
treeb534f9c0f3cc4e71708deebb0107a61f1216f930 /scene/3d/baked_light_instance.cpp
parentb3cda43a0fb49e1cb9c8414077a23fa4b61ede38 (diff)
downloadgodot-ab22203791489df160c36a29a3cd8aa8b32bec04.tar.gz
godot-ab22203791489df160c36a29a3cd8aa8b32bec04.tar.zst
godot-ab22203791489df160c36a29a3cd8aa8b32bec04.zip
misc cleanup
Diffstat (limited to 'scene/3d/baked_light_instance.cpp')
-rw-r--r--scene/3d/baked_light_instance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/baked_light_instance.cpp b/scene/3d/baked_light_instance.cpp
index b55093a77..1ae7866f0 100644
--- a/scene/3d/baked_light_instance.cpp
+++ b/scene/3d/baked_light_instance.cpp
@@ -81,7 +81,7 @@ float BakedLightSampler::get_param(Param p_param) const{
void BakedLightSampler::set_resolution(int p_resolution){
- ERR_FAIL_COND(p_resolution<4 && p_resolution>32);
+ ERR_FAIL_COND(p_resolution<4 || p_resolution>32);
resolution=p_resolution;
VS::get_singleton()->baked_light_sampler_set_resolution(base,resolution);
}