Added correct initialization for script editor theme.

Some style fixes for VS interface.
This commit is contained in:
Daniel J. Ramirez 2017-10-02 18:33:42 -05:00
parent 6dc1025e63
commit 6d874ea685
4 changed files with 48 additions and 23 deletions

View file

@ -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();