From 0e5c41857c1246501ea8bdd0c6455dc0f1a8170b Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 20 Apr 2022 10:44:00 +0800 Subject: Validate input in NoiseTexture::set_seamless_blend_skirt() --- modules/noise/noise_texture.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/noise') diff --git a/modules/noise/noise_texture.cpp b/modules/noise/noise_texture.cpp index 276335797a..f15d825b0c 100644 --- a/modules/noise/noise_texture.cpp +++ b/modules/noise/noise_texture.cpp @@ -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; } -- cgit v1.2.3