diff --git a/scene/2d/navigation_polygon_instance.cpp b/scene/2d/navigation_polygon_instance.cpp index 2bcef29bc..1d4ac5827 100644 --- a/scene/2d/navigation_polygon_instance.cpp +++ b/scene/2d/navigation_polygon_instance.cpp @@ -320,7 +320,7 @@ void NavigationPolygonInstance::bake_navigation_polygon(bool p_on_thread) { baking_started = true; navpoly->clear(); - if (p_on_thread) { // && OS::get_singleton()->get_render_thread_mode() == OS::RenderThreadMode::RENDER_SEPARATE_THREAD + if (p_on_thread && OS::get_singleton()->can_use_threads()) { Ref f; f.instance(); f->set_instance(this); diff --git a/scene/3d/navigation_mesh_instance.cpp b/scene/3d/navigation_mesh_instance.cpp index cd7d57dc4..fa24d4155 100644 --- a/scene/3d/navigation_mesh_instance.cpp +++ b/scene/3d/navigation_mesh_instance.cpp @@ -291,7 +291,7 @@ void NavigationMeshInstance::bake_navigation_mesh(bool p_on_thread) { navmesh->clear(); - if (p_on_thread && OS::get_singleton()->get_render_thread_mode() == OS::RenderThreadMode::RENDER_SEPARATE_THREAD) { + if (p_on_thread && OS::get_singleton()->can_use_threads()) { Ref f; f.instance(); f->set_instance(this);