diff options
author | smix8 <52464204+smix8@users.noreply.github.com> | 2024-04-11 03:53:26 +0200 |
---|---|---|
committer | smix8 <52464204+smix8@users.noreply.github.com> | 2024-04-11 03:53:26 +0200 |
commit | 2bc2b52bd1464e13a10b4082f1c036ed8cadb55c (patch) | |
tree | 5ad4c93318ac36b3ac26a8ee0334db5c5d021bbe /modules/navigation/3d/nav_mesh_generator_3d.cpp | |
parent | 83b916bb00eb8cac4584143a80f5cfad7ce1e908 (diff) | |
download | redot-engine-2bc2b52bd1464e13a10b4082f1c036ed8cadb55c.tar.gz |
Use threads for baking navigation mesh inside editor
Enables threaded navigation mesh baking inside the editor.
Diffstat (limited to 'modules/navigation/3d/nav_mesh_generator_3d.cpp')
-rw-r--r-- | modules/navigation/3d/nav_mesh_generator_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/navigation/3d/nav_mesh_generator_3d.cpp b/modules/navigation/3d/nav_mesh_generator_3d.cpp index 8b43eba080..11f4359146 100644 --- a/modules/navigation/3d/nav_mesh_generator_3d.cpp +++ b/modules/navigation/3d/nav_mesh_generator_3d.cpp @@ -85,7 +85,7 @@ NavMeshGenerator3D::NavMeshGenerator3D() { // Using threads might cause problems on certain exports or with the Editor on certain devices. // This is the main switch to turn threaded navmesh baking off should the need arise. - use_threads = baking_use_multiple_threads && !Engine::get_singleton()->is_editor_hint(); + use_threads = baking_use_multiple_threads; } NavMeshGenerator3D::~NavMeshGenerator3D() { |