mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-26 07:54:07 +00:00
Replace Instances<T>::empty() with Instances<T>::default() and make it return an empty table for vector data instead of one empty row (#2689)
Make Instances<T>::default() return an empty table for everything, even vector, and replace ::empty() with ::default()
This commit is contained in:
parent
cb4289169d
commit
2696abc6b3
18 changed files with 110 additions and 115 deletions
|
@ -912,7 +912,7 @@ async fn render_texture<'a: 'n>(
|
|||
|
||||
#[node_macro::node(category(""))]
|
||||
async fn upload_texture<'a: 'n>(_: impl ExtractFootprint + Ctx, input: ImageFrameTable<Color>, executor: &'a WgpuExecutor) -> TextureFrameTable {
|
||||
let mut result_table = TextureFrameTable::empty();
|
||||
let mut result_table = TextureFrameTable::default();
|
||||
|
||||
for instance in input.instance_ref_iter() {
|
||||
let image = instance.instance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue