From a6472d034429b202f16b86c2ee20b2066aa90026 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Fri, 20 Oct 2017 16:55:47 +0300 Subject: Fix adding a NavigationPolygonInstance to a Node2D freezing the editor Fixes #11975 --- scene/2d/navigation_polygon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/2d') diff --git a/scene/2d/navigation_polygon.cpp b/scene/2d/navigation_polygon.cpp index 352ec3b300..35f94bff59 100644 --- a/scene/2d/navigation_polygon.cpp +++ b/scene/2d/navigation_polygon.cpp @@ -329,7 +329,7 @@ void NavigationPolygonInstance::_notification(int p_what) { break; } - c = Object::cast_to(get_parent()); + c = Object::cast_to(c->get_parent()); } } break; -- cgit v1.2.3