Skip to content

Commit 64b1828

Browse files
committed
Merge pull request #112190 from bruvzg/drag_spam
Fix error spam when dragging text in the script editor.
2 parents 433c884 + de3ff99 commit 64b1828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/inspector/editor_properties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3014,7 +3014,7 @@ void EditorPropertyNodePath::drop_data_fw(const Point2 &p_point, const Variant &
30143014
}
30153015

30163016
bool EditorPropertyNodePath::is_drop_valid(const Dictionary &p_drag_data) const {
3017-
if (p_drag_data["type"] != "nodes") {
3017+
if (!p_drag_data.has("type") || p_drag_data["type"] != "nodes") {
30183018
return false;
30193019
}
30203020
Array nodes = p_drag_data["nodes"];

0 commit comments

Comments
 (0)