From 7559eb1667da2329ba4bf216a1030079c4ee96e4 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 | 43 +++++++++++++++++++++++++++++--- 2 files changed, 48 insertions(+), 3 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 7884005ab7a0..6545f645a8a7 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2929,6 +2929,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