mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Add static methods for creating Image and ImageTexture
This commit is contained in:
@@ -678,7 +678,7 @@ void EditorResourcePicker::drop_data_fw(const Point2 &p_point, const Variant &p_
|
||||
if (!texture.is_valid()) {
|
||||
texture.instantiate();
|
||||
}
|
||||
texture->create_from_image(dropped_resource);
|
||||
texture->set_image(dropped_resource);
|
||||
dropped_resource = texture;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user