summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/editor_log.cpp2
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/tools/editor/editor_log.cpp b/tools/editor/editor_log.cpp
index 5933b09173..23ba88ef81 100644
--- a/tools/editor/editor_log.cpp
+++ b/tools/editor/editor_log.cpp
@@ -216,6 +216,8 @@ EditorLog::EditorLog() {
log = memnew( RichTextLabel );
log->set_scroll_follow(true);
+ log->set_selection_enabled(true);
+ log->set_focus_mode(FOCUS_CLICK);
pc->add_child(log);
add_message(VERSION_FULL_NAME" (c) 2008-2014 Juan Linietsky, Ariel Manzur.");
//log->add_text("Initialization Complete.\n"); //because it looks cool.
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp
index 209434440d..1c87dd0810 100644
--- a/tools/editor/plugins/script_editor_plugin.cpp
+++ b/tools/editor/plugins/script_editor_plugin.cpp
@@ -188,7 +188,9 @@ void ScriptTextEditor::apply_code() {
if (script.is_null())
return;
+ print_line("applying code");
script->set_source_code(get_text_edit()->get_text());
+ script->update_exports();
}
Ref<Script> ScriptTextEditor::get_edited_script() const {
@@ -362,7 +364,8 @@ void ScriptTextEditor::_validate_script() {
line=-1;
if (!script->is_tool()) {
script->set_source_code(text);
- script->reload(); //will update all the variables in property editors
+ script->update_exports();
+ //script->reload(); //will update all the variables in property editors
}
functions.clear();