diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-20 16:40:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 16:40:39 +0200 |
commit | fd4c907a3544049b1693395bbabb94a9ee3f8658 (patch) | |
tree | 4a389109a0e8bbe75cef255a3672fe92cec5111a /scene/2d | |
parent | 0e8db63009fdbc586829565d86f0974b95b1cd9e (diff) | |
parent | a6472d034429b202f16b86c2ee20b2066aa90026 (diff) |
Merge pull request #12260 from bojidar-bg/11975-navpoly-freeze
Fix adding a NavigationPolygonInstance to a Node2D freezing the editor
[ci skip]
Diffstat (limited to 'scene/2d')
-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; |