Revert "Update Node::get_configuration_warnings signature"

This reverts commit d3852deaa4.
This commit is contained in:
Rémi Verschelde
2024-02-17 19:03:21 +01:00
parent 9f76398781
commit 21f0529aa9
132 changed files with 213 additions and 217 deletions

View File

@@ -401,14 +401,11 @@ Vector2 PointLight2D::get_texture_offset() const {
return texture_offset;
}
Array PointLight2D::get_configuration_warnings() const {
Array warnings = Node::get_configuration_warnings();
PackedStringArray PointLight2D::get_configuration_warnings() const {
PackedStringArray warnings = Node::get_configuration_warnings();
if (!texture.is_valid()) {
Dictionary texture_warning;
texture_warning["message"] = RTR("A texture with the shape of the light must be supplied.");
texture_warning["property"] = "texture";
warnings.push_back(texture_warning);
warnings.push_back(RTR("A texture with the shape of the light must be supplied to the \"Texture\" property."));
}
return warnings;