Make NavigationLink3D properly update on NOTIFICATION_VISIBILITY_CHANGED

This commit is contained in:
Olle Lukowski 2025-03-04 20:11:08 +01:00
parent 1753893c60
commit fc1461cfe0
No known key found for this signature in database
GPG Key ID: 43355DC7C7566E22

View File

@ -262,6 +262,12 @@ void NavigationLink3D::_notification(int p_what) {
case NOTIFICATION_EXIT_TREE: {
_link_exit_navigation_map();
} break;
#ifdef DEBUG_ENABLED
case NOTIFICATION_VISIBILITY_CHANGED: {
_update_debug_mesh();
} break;
#endif // DEBUG_ENABLED
}
}