Validate input in NoiseTexture::set_seamless_blend_skirt()

This commit is contained in:
Haoyu Qiu 2022-04-20 10:44:00 +08:00
parent 7f384886ce
commit 0e5c41857c

View file

@ -241,6 +241,8 @@ bool NoiseTexture::get_seamless() {
}
void NoiseTexture::set_seamless_blend_skirt(real_t p_blend_skirt) {
ERR_FAIL_COND(p_blend_skirt < 0.05 || p_blend_skirt > 1);
if (p_blend_skirt == seamless_blend_skirt) {
return;
}