Commit 2e87232f by Rémi Verschelde Committed by GitHub

Merge pull request #7391 from ktksgit/master

Update DebugMesh when NavMesh changes
parents 0cf34cb3 28075073
......@@ -356,6 +356,11 @@ void NavigationMeshInstance::set_navigation_mesh(const Ref<NavigationMesh>& p_na
if (navigation && navmesh.is_valid() && enabled) {
nav_id = navigation->navmesh_create(navmesh,get_relative_transform(navigation),this);
}
if (debug_view && navmesh.is_valid()) {
debug_view->cast_to<MeshInstance>()->set_mesh( navmesh->get_debug_mesh() );
}
update_gizmo();
update_configuration_warning();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment