diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-05 23:08:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 23:08:30 +0200 |
commit | d405761ee7856c9e5a52904925a9cf4fe26fd1de (patch) | |
tree | 65d99d58eb516c4224808230e124f43d13f8f3bd | |
parent | 77843355a04361c4a770f870e9406d4a748fb0ca (diff) | |
parent | 79b4844be51e71cea394af261e1332851c35c690 (diff) |
Merge pull request #59923 from pfertyk/issue-59915-noise-generate-texture-crash
Fix `NoiseTexture._generate_texture` crash
-rw-r--r-- | modules/noise/noise.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/noise/noise.h b/modules/noise/noise.h index 767aa830e8..853c24b485 100644 --- a/modules/noise/noise.h +++ b/modules/noise/noise.h @@ -101,6 +101,7 @@ class Noise : public Resource { on Source it's translated to corner of Q1/s3 unless the ALT_XY modulo moves it to Q4 */ + ERR_FAIL_COND_V(p_blend_skirt < 0, Ref<Image>()); int skirt_width = MAX(1, p_width * p_blend_skirt); int skirt_height = MAX(1, p_height * p_blend_skirt); |