You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
do not open dominant script if external editor is selected, fixes #3067
This commit is contained in:
@@ -2256,6 +2256,9 @@ void ScriptEditor::_history_back(){
|
|||||||
void ScriptEditor::set_scene_root_script( Ref<Script> p_script ) {
|
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");
|
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()) {
|
if (open_dominant && p_script.is_valid()) {
|
||||||
edit(p_script);
|
edit(p_script);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user