summaryrefslogtreecommitdiffstats
path: root/tools/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-09-11 10:01:52 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-09-11 10:05:46 -0300
commit1bf684cea274db7c58b3f62a77ad4de3980c14dc (patch)
treeb39c833d3e744b7070d188f5f3335cacf19d7fec /tools/editor/plugins/script_editor_plugin.cpp
parente6ef92d21753e2b06e5f490d59d12d512490093b (diff)
downloadredot-engine-1bf684cea274db7c58b3f62a77ad4de3980c14dc.tar.gz
-Cleaned up find/replace bar for replace (made selection only default if selection exists), also made buttons look like buttons
-Fixed a bug related to theme propagation, may be able to solve #6443, #6302 and others. Please test.
Diffstat (limited to 'tools/editor/plugins/script_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp
index 7f41949613..f2655fbb9f 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/tools/editor/plugins/script_editor_plugin.cpp
@@ -1513,6 +1513,7 @@ void ScriptEditor::edit(const Ref<Script>& p_script, bool p_grab_focus) {
}
ERR_FAIL_COND(!se);
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()) {