From 79b4844be51e71cea394af261e1332851c35c690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Fertyk?= Date: Tue, 5 Apr 2022 22:24:58 +0200 Subject: [PATCH] Fix `NoiseTexture._generate_texture` crash Fixes #59915 . --- modules/noise/noise.h | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/noise/noise.h b/modules/noise/noise.h index 767aa830e88..853c24b4852 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()); int skirt_width = MAX(1, p_width * p_blend_skirt); int skirt_height = MAX(1, p_height * p_blend_skirt);