Merge pull request #46909 from akien-mga/3.2-fix-noisetexture-thread

NoiseTexture: Fix regression in starting thread
This commit is contained in:
Rémi Verschelde 2021-03-11 22:19:29 +01:00 committed by GitHub
commit db246f8edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ void NoiseTexture::_update_texture() {
#endif #endif
if (use_thread) { if (use_thread) {
if (noise_thread.is_started()) { if (!noise_thread.is_started()) {
noise_thread.start(_thread_function, this); noise_thread.start(_thread_function, this);
regen_queued = false; regen_queued = false;
} else { } else {