diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-06 18:51:30 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-08 11:24:04 +0800 |
commit | ad04922ef94fd446c994a712f2376498f7842f70 (patch) | |
tree | 7865a2e174b385230429e8dda058d07e8d64f96e /editor/editor_sectioned_inspector.cpp | |
parent | 18177828ad97286ca88cbdcfb763c967858d051b (diff) | |
download | redot-engine-ad04922ef94fd446c994a712f2376498f7842f70.tar.gz |
Only show named layers in layer menu
Diffstat (limited to 'editor/editor_sectioned_inspector.cpp')
-rw-r--r-- | editor/editor_sectioned_inspector.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp index 94f4fec89a..ae47bbe864 100644 --- a/editor/editor_sectioned_inspector.cpp +++ b/editor/editor_sectioned_inspector.cpp @@ -151,7 +151,9 @@ void SectionedInspector::_section_selected() { void SectionedInspector::set_current_section(const String &p_section) { if (section_map.has(p_section)) { - section_map[p_section]->select(0); + TreeItem *item = section_map[p_section]; + item->select(0); + sections->scroll_to_item(item); } } |