diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-10-20 16:55:47 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2017-10-20 16:55:47 +0300 |
commit | a6472d034429b202f16b86c2ee20b2066aa90026 (patch) | |
tree | e6aa9c90e42854f9a8f3fc8b613e1bf4aa7c613b | |
parent | f52ab8d86418a67ddee247ed7765e72935b0c57f (diff) |
Fix adding a NavigationPolygonInstance to a Node2D freezing the editor
Fixes #11975
-rw-r--r-- | scene/2d/navigation_polygon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Node2D>(get_parent()); + c = Object::cast_to<Node2D>(c->get_parent()); } } break; |