Browse Source

NoiseTexture: Fix regression in starting thread

Was a regression from #45618.

Fixes #46907.
Rémi Verschelde 4 years ago
parent
commit
0d8182d2b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/opensimplex/noise_texture.cpp

+ 1 - 1
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 {