mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Merge pull request #72240 from JohanAR/graphnode_min_size
GraphNode ignore non-visible children for minimum size.
This commit is contained in:
commit
80629f9d11
@ -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…
Reference in New Issue
Block a user