From edd8668695a2a27ea85ba3f46b1406d9c8df01d2 Mon Sep 17 00:00:00 2001 From: Saracen Date: Fri, 29 Sep 2023 14:58:13 +0100 Subject: [PATCH] Script path type support in editor: Allow script path type hints to be used in drag and drop and scene tree popup --- editor/editor_properties.cpp | 8 +++++ editor/gui/scene_tree_editor.cpp | 56 ++++++++++++++++++++++++++++++-- 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index a197eb9dced8f0..6ea903d5575c9d 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2858,6 +2858,14 @@ bool EditorPropertyNodePath::is_drop_valid(const Dictionary &p_drag_data) const if (dropped_node->is_class(E) || EditorNode::get_singleton()->is_object_of_custom_type(dropped_node, E)) { return true; + } else { + Ref