You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix wait for thread not started
This commit is contained in:
@@ -270,7 +270,9 @@ void NavigationRegion3D::bake_navigation_mesh(bool p_on_thread) {
|
||||
|
||||
void NavigationRegion3D::_bake_finished(Ref<NavigationMesh> p_nav_mesh) {
|
||||
set_navigation_mesh(p_nav_mesh);
|
||||
bake_thread.wait_to_finish();
|
||||
if (bake_thread.is_started()) {
|
||||
bake_thread.wait_to_finish();
|
||||
}
|
||||
emit_signal(SNAME("bake_finished"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user