You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Update Node::get_configuration_warnings signature
This commit is contained in:
@@ -3500,9 +3500,9 @@ Variant Viewport::gui_get_drag_data() const {
|
||||
return gui.drag_data;
|
||||
}
|
||||
|
||||
PackedStringArray Viewport::get_configuration_warnings() const {
|
||||
ERR_MAIN_THREAD_GUARD_V(PackedStringArray());
|
||||
PackedStringArray warnings = Node::get_configuration_warnings();
|
||||
Array Viewport::get_configuration_warnings() const {
|
||||
ERR_MAIN_THREAD_GUARD_V(Array());
|
||||
Array warnings = Node::get_configuration_warnings();
|
||||
|
||||
if (size.x <= 1 || size.y <= 1) {
|
||||
warnings.push_back(RTR("The Viewport size must be greater than or equal to 2 pixels on both dimensions to render anything."));
|
||||
|
||||
Reference in New Issue
Block a user