summaryrefslogtreecommitdiff
path: root/modules/noise
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-27 12:44:06 +0200
committerGitHub <noreply@github.com>2022-04-27 12:44:06 +0200
commitf05ec69158057c533c76d9b105134ac0cfba0ed4 (patch)
treebdb7e6503fddba44e6dbf4acb3314183624883b0 /modules/noise
parentf40952e0ba4efc2c2ec89e7492f09a0dea839f12 (diff)
parent0e5c41857c1246501ea8bdd0c6455dc0f1a8170b (diff)
Merge pull request #60384 from timothyqiu/noise-skirt
Diffstat (limited to 'modules/noise')
-rw-r--r--modules/noise/noise_texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/noise/noise_texture.cpp b/modules/noise/noise_texture.cpp
index 2b35e00906..e9d16e548c 100644
--- a/modules/noise/noise_texture.cpp
+++ b/modules/noise/noise_texture.cpp
@@ -300,6 +300,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;
}