diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-21 19:36:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 19:36:16 +0200 |
commit | 133c1eb0af4b65966b674203113bbf64a039980f (patch) | |
tree | 71e5e4a0100cab3b8365f2c40eb8f140723556e1 /modules | |
parent | 9f22ea2a7604f21ffd41bae53ecdffca848fc4b0 (diff) | |
parent | 54d305eebe8acfaf33717f868f3f218e0da8c55c (diff) |
Merge pull request #52367 from Duroxxigar/improve-nav-error-messages
Improve readability for failing errors in nav area
Diffstat (limited to 'modules')
-rw-r--r-- | modules/navigation/navigation_mesh_generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/navigation/navigation_mesh_generator.cpp b/modules/navigation/navigation_mesh_generator.cpp index bb6bc578a4..8fd3a13e1f 100644 --- a/modules/navigation/navigation_mesh_generator.cpp +++ b/modules/navigation/navigation_mesh_generator.cpp @@ -489,7 +489,7 @@ NavigationMeshGenerator::~NavigationMeshGenerator() { } void NavigationMeshGenerator::bake(Ref<NavigationMesh> p_nav_mesh, Node *p_node) { - ERR_FAIL_COND(!p_nav_mesh.is_valid()); + ERR_FAIL_COND_MSG(!p_nav_mesh.is_valid(), "Invalid navigation mesh."); #ifdef TOOLS_ENABLED EditorProgress *ep(nullptr); |