Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-12-14 20:19:47 +0300
committerHans Goudey <h.goudey@me.com>2021-12-14 20:19:47 +0300
commitd56bbfea7b420d7d746e7541073a87517ffffaa9 (patch)
treea3ad17996ec189db08d2244bd4bc8fa36096951b /source/blender/makesdna
parentfdd41ac49ee411d0fe4b49d8db8a0b2eb6d20da9 (diff)
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
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_node_types.h2
1 files changed, 0 insertions, 2 deletions
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,