From 585f4ed737d6281c03f3cf4af16e8bff7df57814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Aires=20Rast=C3=A9n?= Date: Fri, 7 Apr 2023 17:44:38 +0200 Subject: GraphNode ignore non-visible children for minimum size. (cherry picked from commit 9a60c4affb0d6c3638aea140a820eddf258eb133) --- scene/gui/graph_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp index 7d9cdd62ff..8b2d462d85 100644 --- a/scene/gui/graph_node.cpp +++ b/scene/gui/graph_node.cpp @@ -664,7 +664,7 @@ Size2 GraphNode::get_minimum_size() const { for (int i = 0; i < get_child_count(); i++) { Control *c = Object::cast_to(get_child(i)); - if (!c) { + if (!c || !c->is_visible()) { continue; } if (c->is_set_as_top_level()) { -- cgit v1.2.3