mirror of
https://github.com/godotengine/godot.git
synced 2024-12-04 01:52:56 +00:00
Fix re-opening of TextFiles when its already being edited
This commit is contained in:
parent
b4f579b5ba
commit
81bf150cdc
@ -1937,7 +1937,7 @@ bool ScriptEditor::edit(const RES &p_resource, int p_line, int p_col, bool p_gra
|
|||||||
if (!se)
|
if (!se)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (se->get_edited_resource() == p_resource) {
|
if ((script != NULL && se->get_edited_resource() == p_resource) || se->get_edited_resource()->get_path() == p_resource->get_path()) {
|
||||||
|
|
||||||
if (should_open) {
|
if (should_open) {
|
||||||
if (tab_container->get_current_tab() != i) {
|
if (tab_container->get_current_tab() != i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user