summaryrefslogtreecommitdiffstats
path: root/editor/editor_sectioned_inspector.cpp
diff options
context:
space:
mode:
authortrollodel <33117082+trollodel@users.noreply.github.com>2021-03-07 21:07:30 +0100
committertrollodel <33117082+trollodel@users.noreply.github.com>2021-05-17 22:06:46 +0200
commitbca0d36fe662477eb787b4ddc9b0b69ab4603393 (patch)
treeecf4ceaffa5559cb7a0fd0920997bad9a779532e /editor/editor_sectioned_inspector.cpp
parent92c04fa727e3fc507e31c1bce88beeceb98fb06a (diff)
downloadredot-engine-bca0d36fe662477eb787b4ddc9b0b69ab4603393.tar.gz
Improve TreeItem API and allow to move nodes
Diffstat (limited to 'editor/editor_sectioned_inspector.cpp')
-rw-r--r--editor/editor_sectioned_inspector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp
index f81c87be9e..7532f1c796 100644
--- a/editor/editor_sectioned_inspector.cpp
+++ b/editor/editor_sectioned_inspector.cpp
@@ -135,7 +135,7 @@ void SectionedInspector::_section_selected() {
}
selected_category = sections->get_selected()->get_metadata(0);
- filter->set_section(selected_category, sections->get_selected()->get_children() == nullptr);
+ filter->set_section(selected_category, sections->get_selected()->get_first_child() == nullptr);
inspector->set_property_prefix(selected_category + "/");
}
@@ -187,8 +187,8 @@ void SectionedInspector::edit(Object *p_object) {
TreeItem *first_item = sections->get_root();
if (first_item) {
- while (first_item->get_children()) {
- first_item = first_item->get_children();
+ while (first_item->get_first_child()) {
+ first_item = first_item->get_first_child();
}
first_item->select(0);