diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-14 08:21:18 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-14 08:21:18 -0300 |
commit | 534c8e74b9e4990ac1f63ef701330552cecfc28f (patch) | |
tree | 23b82c1d59e17165ada752c4878c4b8054f62741 | |
parent | 7f96f0603e16a970c7b0ea1fba936e56baf80d4a (diff) |
do not open dominant script if external editor is selected, fixes #3067
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index df6397ed1d..b95c837003 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -2256,6 +2256,9 @@ void ScriptEditor::_history_back(){ void ScriptEditor::set_scene_root_script( Ref<Script> p_script ) { bool open_dominant = EditorSettings::get_singleton()->get("text_editor/open_dominant_script_on_scene_change"); + if (bool(EditorSettings::get_singleton()->get("external_editor/use_external_editor"))) + return; + if (open_dominant && p_script.is_valid()) { edit(p_script); } |