1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix error spam when dragging text in the script editor.

This commit is contained in:
Pāvels Nadtočajevs
2025-10-30 12:20:00 +02:00
parent 2cb2c1fb5b
commit de3ff99398

View File

@@ -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"];