mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Added correct initialization for script editor theme.
Some style fixes for VS interface.
This commit is contained in:
parent
6dc1025e63
commit
6d874ea685
4 changed files with 48 additions and 23 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue