Support connecting noodle to another node and ensure it

stays connected when parent node moves
This commit is contained in:
2024-02-25 12:33:13 +00:00
parent 050bb355d0
commit 8501eb787e
3 changed files with 114 additions and 48 deletions

View File

@@ -181,7 +181,8 @@ void add_node(compositor *comp, node_type type, node_data data, u64 inputs,
return;
}
line *noodles = mem_arena_alloc(comp->arena, inputs * sizeof(line));
u64 alloc_size = inputs * sizeof(ui_noodle_elem);
ui_noodle_elem *noodles = mem_arena_alloc(comp->arena, alloc_size);
if (!noodles) {
return;
}