Prevented external editor from running multiple times
Fixes #16923. I'm not a fan of the special case for scripts in editor_node.cpp, but in any case,
I made it so it wouldn't make the external editor to re-open just because we switched scenes.
(cherry picked from commit f5147befb6
)
This commit is contained in:
parent
5485939233
commit
ce944bc3fb
|
@ -1579,6 +1579,7 @@ void EditorNode::_edit_current() {
|
||||||
|
|
||||||
// special case if use of external editor is true
|
// special case if use of external editor is true
|
||||||
if (main_plugin->get_name() == "Script" && (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor")) || overrides_external_editor(current_obj))) {
|
if (main_plugin->get_name() == "Script" && (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor")) || overrides_external_editor(current_obj))) {
|
||||||
|
if (!changing_scene)
|
||||||
main_plugin->edit(current_obj);
|
main_plugin->edit(current_obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue