summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-20 16:40:39 +0200
committerGitHub <noreply@github.com>2017-10-20 16:40:39 +0200
commitfd4c907a3544049b1693395bbabb94a9ee3f8658 (patch)
tree4a389109a0e8bbe75cef255a3672fe92cec5111a /scene/2d
parent0e8db63009fdbc586829565d86f0974b95b1cd9e (diff)
parenta6472d034429b202f16b86c2ee20b2066aa90026 (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.cpp2
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;