From b4cc8ed6f2c3080f1c5e58d5b085b90e3564095e Mon Sep 17 00:00:00 2001 From: MaxStgs Date: Fri, 30 Apr 2021 14:08:45 +0500 Subject: [PATCH] Fix BakedLightmap bias bound check --- scene/3d/baked_lightmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/baked_lightmap.cpp b/scene/3d/baked_lightmap.cpp index 67c201c3e5d..475dbd3cb7c 100644 --- a/scene/3d/baked_lightmap.cpp +++ b/scene/3d/baked_lightmap.cpp @@ -1446,7 +1446,7 @@ int BakedLightmap::get_bounces() const { } void BakedLightmap::set_bias(float p_bias) { - ERR_FAIL_COND(p_bias < 0.00001); + ERR_FAIL_COND(p_bias < 0.00001f); bias = p_bias; }