Nodes: Use existing nodes span cache
Use cache from 25e307d725 rather
than creating a new vector on every redraw.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user