From 0d8182d2b12c42f1a5ff148333dbed4b38c26f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 11 Mar 2021 21:58:53 +0100 Subject: [PATCH] NoiseTexture: Fix regression in starting thread Was a regression from #45618. Fixes #46907. --- modules/opensimplex/noise_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/opensimplex/noise_texture.cpp b/modules/opensimplex/noise_texture.cpp index e6de7a4d31b..2f2336d638a 100644 --- a/modules/opensimplex/noise_texture.cpp +++ b/modules/opensimplex/noise_texture.cpp @@ -162,7 +162,7 @@ void NoiseTexture::_update_texture() { #endif if (use_thread) { - if (noise_thread.is_started()) { + if (!noise_thread.is_started()) { noise_thread.start(_thread_function, this); regen_queued = false; } else {