From de3ff9939841047080fa4477c26999a4d24f1c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Thu, 30 Oct 2025 12:20:00 +0200 Subject: [PATCH] Fix error spam when dragging text in the script editor. --- editor/inspector/editor_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/inspector/editor_properties.cpp b/editor/inspector/editor_properties.cpp index 881e2da5c02..edd6d20b433 100644 --- a/editor/inspector/editor_properties.cpp +++ b/editor/inspector/editor_properties.cpp @@ -3014,7 +3014,7 @@ void EditorPropertyNodePath::drop_data_fw(const Point2 &p_point, const Variant & } bool EditorPropertyNodePath::is_drop_valid(const Dictionary &p_drag_data) const { - if (p_drag_data["type"] != "nodes") { + if (!p_drag_data.has("type") || p_drag_data["type"] != "nodes") { return false; } Array nodes = p_drag_data["nodes"];