Browse Source

Fix BakedLightmap bias bound check

(cherry picked from commit b4cc8ed6f2c3080f1c5e58d5b085b90e3564095e)
MaxStgs 4 years ago
parent
commit
387d2a69ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/3d/baked_lightmap.cpp

+ 1 - 1
scene/3d/baked_lightmap.cpp

@@ -1457,7 +1457,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;
 }