mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
GraphNode ignore non-visible children for minimum size.
(cherry picked from commit 9a60c4affb)
This commit is contained in:
parent
cacc6c5ed5
commit
585f4ed737
1 changed files with 1 additions and 1 deletions
|
|
@ -664,7 +664,7 @@ Size2 GraphNode::get_minimum_size() const {
|
|||
|
||||
for (int i = 0; i < get_child_count(); i++) {
|
||||
Control *c = Object::cast_to<Control>(get_child(i));
|
||||
if (!c) {
|
||||
if (!c || !c->is_visible()) {
|
||||
continue;
|
||||
}
|
||||
if (c->is_set_as_top_level()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue