Merge pull request #12260 from bojidar-bg/11975-navpoly-freeze

Fix adding a NavigationPolygonInstance to a Node2D freezing the editor

[ci skip]
This commit is contained in:
Rémi Verschelde 2017-10-20 16:40:39 +02:00 committed by GitHub
commit fd4c907a35

View file

@ -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;