From d56bbfea7b420d7d746e7541073a87517ffffaa9 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 14 Dec 2021 11:19:47 -0600 Subject: Cleanup: Remove runtime uiBlock pointer from nodes Code is simpler when the uiBlocks used during drawing are simply stored in an array. Additionally, looping can be simpler when we use an vector to hold a temporary copy of the tree's linked list of nodes. This patch also slightly changes how uiBlocks are "named" in `node_uiblocks_init`. Now it uses the node name instead of the pointer, which is helpful so we rely less on the node's address. Differential Revision: https://developer.blender.org/D13540 --- source/blender/makesdna/DNA_node_types.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 92b80344462..09a8e6bdb06 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -323,8 +323,6 @@ typedef struct bNode { char branch_tag; /** Used at runtime when iterating over node branches. */ char iter_flag; - /** Runtime during drawing. */ - struct uiBlock *block; /** * XXX: eevee only, id of screen space reflection layer, -- cgit v1.2.3