diff options
author | Daniel J. Ramirez <djrmuv@gmail.com> | 2017-10-02 18:33:42 -0500 |
---|---|---|
committer | Daniel J. Ramirez <djrmuv@gmail.com> | 2017-10-02 18:33:42 -0500 |
commit | 6d874ea685bb57e1c78b7c67f0af7feafc1b55d5 (patch) | |
tree | 1c3dcd88f11f753a0e844c78c1804a75320e4b87 /editor/plugins/script_editor_plugin.cpp | |
parent | 6dc1025e6313d711939269e1578fff5ffc0cd30a (diff) |
Added correct initialization for script editor theme.
Some style fixes for VS interface.
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 9af5885a17..5e66488afb 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1683,9 +1683,8 @@ bool ScriptEditor::edit(const Ref<Script> &p_script, int p_line, int p_col, bool } ERR_FAIL_COND_V(!se, false); - // load script before adding as child else editor will crash at theme loading - se->set_edited_script(p_script); tab_container->add_child(se); + se->set_edited_script(p_script); se->set_tooltip_request_func("_get_debug_tooltip", this); if (se->get_edit_menu()) { se->get_edit_menu()->hide(); |