aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/tree.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-09-02 23:13:40 -0300
committerJuan Linietsky2014-09-02 23:13:40 -0300
commit1a2cb755e2d8b9d59178f36702f6dff7235b9088 (patch)
tree4a88f47c8b984522e36ac973accb34bdcb00363b /scene/gui/tree.cpp
parent89fa70706f9166765c3ac3f799225a467800f065 (diff)
downloadgodot-1a2cb755e2d8b9d59178f36702f6dff7235b9088.tar.gz
godot-1a2cb755e2d8b9d59178f36702f6dff7235b9088.tar.zst
godot-1a2cb755e2d8b9d59178f36702f6dff7235b9088.zip
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index fb85f0c6b..25f04379e 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -2787,7 +2787,7 @@ int Tree::get_item_offset(TreeItem *p_item) const {
ofs+=compute_item_height(it)+cache.vseparation;
- if (it->childs) {
+ if (it->childs && !it->collapsed) {
it=it->childs;