mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Merge pull request #77834 from KoBeWi/I.M.G
Fix Image -> Texture2D inspector auto-conversion
This commit is contained in:
commit
d3651ea455
@ -733,7 +733,7 @@ void EditorResourcePicker::drop_data_fw(const Point2 &p_point, const Variant &p_
|
||||
break;
|
||||
}
|
||||
|
||||
if (at == "Texture2D" && Ref<Image>(dropped_resource).is_valid()) {
|
||||
if (at == "ImageTexture" && Ref<Image>(dropped_resource).is_valid()) {
|
||||
Ref<ImageTexture> texture = edited_resource;
|
||||
if (!texture.is_valid()) {
|
||||
texture.instantiate();
|
||||
|
Loading…
Reference in New Issue
Block a user