Nodes: Use existing nodes span cache

Use cache from 25e307d725 rather
than creating a new vector on every redraw.
This commit is contained in:
Hans Goudey 2022-09-02 13:25:02 -05:00
parent 6f53af3a81
commit 58c650a44c
Notes: blender-bot 2023-02-14 09:34:18 +01:00
Referenced by commit 21e235afc3, Fix: Ensure topology cache exists when drawing nodes
Referenced by issue #100841, Regression: Nodes: Create new frame on selected other frame but no sort this nodes
1 changed files with 1 additions and 1 deletions

View File

@ -3024,7 +3024,7 @@ static void draw_nodetree(const bContext &C,
{
SpaceNode *snode = CTX_wm_space_node(&C);
Vector<bNode *> nodes = ntree.nodes;
Span<bNode *> nodes = ntree.all_nodes();
Array<uiBlock *> blocks = node_uiblocks_init(C, nodes);