Fix built in resource drag&drop and scene quick instancing in the editor.

This commit is contained in:
Relintai 2023-09-22 11:09:41 +02:00
parent 3317240135
commit 443cfea5b2

View File

@ -1015,7 +1015,7 @@ StringName EditorData::type_get_from_anonymous_path(const String &p_path) const
Ref<Script> script = res->get_script();
StringName res_name = "Resource";
StringName res_name = res->get_class_name();
if (script.is_null()) {
return res_name;