浏览代码

GraphNode ignore non-visible children for minimum size.

Johan Aires Rastén 2 年之前
父节点
当前提交
9a60c4affb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/graph_node.cpp

+ 1 - 1
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<Control>(get_child(i));
-		if (!c) {
+		if (!c || !c->is_visible()) {
 			continue;
 		}
 		if (c->is_set_as_top_level()) {