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
No known key found for this signature in database
GPG key ID: 8413210218EF35D2

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