diff options
| author | Rémi Verschelde | 2017-10-20 16:40:39 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-20 16:40:39 +0200 |
| commit | fd4c907a3544049b1693395bbabb94a9ee3f8658 (patch) | |
| tree | 4a389109a0e8bbe75cef255a3672fe92cec5111a | |
| parent | 0e8db63009fdbc586829565d86f0974b95b1cd9e (diff) | |
| parent | a6472d034429b202f16b86c2ee20b2066aa90026 (diff) | |
| download | godot-fd4c907a3544049b1693395bbabb94a9ee3f8658.tar.gz godot-fd4c907a3544049b1693395bbabb94a9ee3f8658.tar.zst godot-fd4c907a3544049b1693395bbabb94a9ee3f8658.zip | |
Merge pull request #12260 from bojidar-bg/11975-navpoly-freeze
Fix adding a NavigationPolygonInstance to a Node2D freezing the editor
[ci skip]
| -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 352ec3b30..35f94bff5 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; |
