mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Fixes infinite loop in NavPolygonInstance warnings
This commit is contained in:
parent
1063ddfeb5
commit
c42bbe1073
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ String NavigationPolygonInstance::get_configuration_warning() const {
|
||||||
return String();
|
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.");
|
return TTR("NavigationPolygonInstance must be a child or grandchild to a Navigation2D node. It only provides navigation data.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue