You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix wait for thread not started
This commit is contained in:
@@ -44,7 +44,9 @@ NoiseTexture2D::~NoiseTexture2D() {
|
||||
if (texture.is_valid()) {
|
||||
RS::get_singleton()->free(texture);
|
||||
}
|
||||
noise_thread.wait_to_finish();
|
||||
if (noise_thread.is_started()) {
|
||||
noise_thread.wait_to_finish();
|
||||
}
|
||||
}
|
||||
|
||||
void NoiseTexture2D::_bind_methods() {
|
||||
|
||||
Reference in New Issue
Block a user