From b9589355503fc87493b33c17982158ec6188a9c6 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sun, 4 Jun 2023 15:19:16 +0200 Subject: [PATCH] Fix Image -> Texture2D inspector auto-conversion --- editor/editor_resource_picker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp index e364e994cb0..8920ad10dcc 100644 --- a/editor/editor_resource_picker.cpp +++ b/editor/editor_resource_picker.cpp @@ -733,7 +733,7 @@ void EditorResourcePicker::drop_data_fw(const Point2 &p_point, const Variant &p_ break; } - if (at == "Texture2D" && Ref(dropped_resource).is_valid()) { + if (at == "ImageTexture" && Ref(dropped_resource).is_valid()) { Ref texture = edited_resource; if (!texture.is_valid()) { texture.instantiate();