diff options
| author | Paulb23 | 2017-10-08 14:29:27 +0100 |
|---|---|---|
| committer | Paulb23 | 2017-10-08 14:29:27 +0100 |
| commit | b07dfd75eaa3a89aefda9c26e33f91d8eaa80fc8 (patch) | |
| tree | d033d978cf660cd377880af38974b5255602d1fc /editor/plugins/script_editor_plugin.cpp | |
| parent | bd10a002402de6e3a69a17af604784ea7f5b3330 (diff) | |
| download | godot-b07dfd75eaa3a89aefda9c26e33f91d8eaa80fc8.tar.gz godot-b07dfd75eaa3a89aefda9c26e33f91d8eaa80fc8.tar.zst godot-b07dfd75eaa3a89aefda9c26e33f91d8eaa80fc8.zip | |
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 5e66488af..477d440f2 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1278,7 +1278,11 @@ void ScriptEditor::_members_overview_selected(int p_idx) { if (!se) { return; } - se->goto_line(members_overview->get_item_metadata(p_idx)); + Dictionary state; + state["scroll_position"] = members_overview->get_item_metadata(p_idx); + state["column"] = 0; + state["row"] = members_overview->get_item_metadata(p_idx); + se->set_edit_state(state); se->ensure_focus(); } |
