Fix Image -> Texture2D inspector auto-conversion
This commit is contained in:
parent
543750a1b3
commit
b958935550
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue