Blender Git Commit Log

Git Commits -> Revision d56bbfe

Revision d56bbfe by Hans Goudey (master)
December 14, 2021, 17:19 (GMT)
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

Commit Details:

Full Hash: d56bbfea7b420d7d746e7541073a87517ffffaa9
Parent Commit: fdd41ac
Lines Changed: +129, -121

3 Modified Paths:

/source/blender/editors/space_node/node_draw.cc (+129, -118) (Diff)
/source/blender/editors/space_node/node_intern.hh (+0, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+0, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021