Browse Source

Reset `ProjectSettings` scroll when changing category

ProgrammerOnCoffee 4 months ago
parent
commit
6141ac8431
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/editor_sectioned_inspector.cpp

+ 1 - 0
editor/editor_sectioned_inspector.cpp

@@ -150,6 +150,7 @@ void SectionedInspector::_section_selected() {
 	selected_category = sections->get_selected()->get_metadata(0);
 	selected_category = sections->get_selected()->get_metadata(0);
 	filter->set_section(selected_category, sections->get_selected()->get_first_child() == nullptr);
 	filter->set_section(selected_category, sections->get_selected()->get_first_child() == nullptr);
 	inspector->set_property_prefix(selected_category + "/");
 	inspector->set_property_prefix(selected_category + "/");
+	inspector->set_v_scroll(0);
 }
 }
 
 
 void SectionedInspector::set_current_section(const String &p_section) {
 void SectionedInspector::set_current_section(const String &p_section) {