From 16b4bc25e99bcb74ba322e65bf296e4947990ca9 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Wed, 21 Sep 2022 15:46:30 +0200 Subject: [PATCH] Fix checking if script is attached to any node belonging to scene (cherry picked from commit 7f7966e10aa6b193012a36751dfc9f8c570b8659) --- editor/plugins/script_text_editor.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index f111b97b0..827ab8b44 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1510,16 +1510,17 @@ bool ScriptTextEditor::can_drop_data_fw(const Point2 &p_point, const Variant &p_ } static Node *_find_script_node(Node *p_edited_scene, Node *p_current_node, const Ref