Fix adding a NavigationPolygonInstance to a Node2D freezing the editor

Fixes #11975
This commit is contained in:
Bojidar Marinov 2017-10-20 16:55:47 +03:00
parent f52ab8d864
commit a6472d0344
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856

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;