diff options
author | Andreas Haas <Hinsbart@users.noreply.github.com> | 2017-10-03 19:56:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 19:56:14 +0200 |
commit | a848fa6cdeb00f0c40f259cde2d59112272e3c51 (patch) | |
tree | 1c6246c425eb58f900bf713256bf37e6de606e13 /editor/plugins/script_editor_plugin.cpp | |
parent | d08f7ee7bf9b8f207739b4916b1c7ba7028eaecc (diff) | |
parent | bb69855f1ac32d657e53c388d12b37464f4efa7c (diff) |
Merge pull request #11789 from djrm/pr_visual_improvements
Added correct initialization for script editor theme.
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(); |