mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #12413 from Adinimys/master
Fixes infinite loop in NavPolygonInstance warnings
This commit is contained in:
commit
2987e6ce4f
@ -452,7 +452,7 @@ String NavigationPolygonInstance::get_configuration_warning() const {
|
||||
return String();
|
||||
}
|
||||
|
||||
c = Object::cast_to<Node2D>(get_parent());
|
||||
c = Object::cast_to<Node2D>(c->get_parent());
|
||||
}
|
||||
|
||||
return TTR("NavigationPolygonInstance must be a child or grandchild to a Navigation2D node. It only provides navigation data.");
|
||||
|
Loading…
Reference in New Issue
Block a user