summaryrefslogtreecommitdiff
path: root/scene/2d/navigation_link_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/navigation_link_2d.cpp')
-rw-r--r--scene/2d/navigation_link_2d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/navigation_link_2d.cpp b/scene/2d/navigation_link_2d.cpp
index 3f7e10eaea..d639e1cc89 100644
--- a/scene/2d/navigation_link_2d.cpp
+++ b/scene/2d/navigation_link_2d.cpp
@@ -279,6 +279,8 @@ PackedStringArray NavigationLink2D::get_configuration_warnings() const {
NavigationLink2D::NavigationLink2D() {
link = NavigationServer2D::get_singleton()->link_create();
+ NavigationServer2D::get_singleton()->link_set_owner_id(link, get_instance_id());
+
set_notify_transform(true);
}