Make editor inspector follow focus

This commit is contained in:
kleonc 2023-07-02 20:44:42 +02:00
parent 46424488ed
commit c6e895050d
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
</method>
</methods>
<members>
<member name="follow_focus" type="bool" setter="set_follow_focus" getter="is_following_focus" overrides="ScrollContainer" default="true" />
<member name="horizontal_scroll_mode" type="int" setter="set_horizontal_scroll_mode" getter="get_horizontal_scroll_mode" overrides="ScrollContainer" enum="ScrollContainer.ScrollMode" default="0" />
</members>
<signals>

View File

@ -4189,6 +4189,7 @@ EditorInspector::EditorInspector() {
main_vbox->add_theme_constant_override("separation", 0);
add_child(main_vbox);
set_horizontal_scroll_mode(SCROLL_MODE_DISABLED);
set_follow_focus(true);
changing = 0;
search_box = nullptr;