You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Update Node::get_configuration_warnings signature
This commit is contained in:
@@ -401,11 +401,14 @@ Vector2 PointLight2D::get_texture_offset() const {
|
||||
return texture_offset;
|
||||
}
|
||||
|
||||
PackedStringArray PointLight2D::get_configuration_warnings() const {
|
||||
PackedStringArray warnings = Node::get_configuration_warnings();
|
||||
Array PointLight2D::get_configuration_warnings() const {
|
||||
Array warnings = Node::get_configuration_warnings();
|
||||
|
||||
if (!texture.is_valid()) {
|
||||
warnings.push_back(RTR("A texture with the shape of the light must be supplied to the \"Texture\" property."));
|
||||
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);
|
||||
}
|
||||
|
||||
return warnings;
|
||||
|
||||
Reference in New Issue
Block a user