Blender Git Loki
Git Commits -> Revision 6290091
Revision 6290091 by Hans Goudey (master) January 19, 2021, 22:43 (GMT) |
Cleanup: Store runtime space node variables in a separate struct This commit moves runtime-only variables from the `SpaceNode` DNA struct to a private struct in `node_intern.h`. Before, it was hard to tell which data needed to be saved in files, this should make it more clear. Node that the `edittree` field is basically a runtime variable, since it's set from the `treepath` list on read, but moving it would require some more invasive changes that I don't think are worth it right now. Also, not all of the moved variables were explicitly cleared on read-- `aspect` is set at the start of a redraw, `cursor` is set in a region callback, and `recalc` was used as an update flag. Differential Revision: https://developer.blender.org/D10141 |
Commit Details:
Full Hash: 6290091bace2fc7654dd3052b8b2553310cead13
Parent Commit: da6dea5
Lines Changed: +133, -75
11 Modified Paths:
/source/blender/blenkernel/intern/screen.c (+1, -2) (Diff)
/source/blender/editors/include/ED_node.h (+4, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+6, -6) (Diff)
/source/blender/editors/space_node/node_add.c (+10, -6) (Diff)
/source/blender/editors/space_node/node_draw.c (+14, -13) (Diff)
/source/blender/editors/space_node/node_edit.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_intern.h (+18, -0) (Diff)
/source/blender/editors/space_node/node_relationships.c (+7, -7) (Diff)
/source/blender/editors/space_node/space_node.c (+32, -13) (Diff)
/source/blender/makesdna/DNA_space_types.h (+14, -21) (Diff)
/source/blender/makesrna/intern/rna_space.c (+25, -5) (Diff)
/source/blender/editors/include/ED_node.h (+4, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+6, -6) (Diff)
/source/blender/editors/space_node/node_add.c (+10, -6) (Diff)
/source/blender/editors/space_node/node_draw.c (+14, -13) (Diff)
/source/blender/editors/space_node/node_edit.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_intern.h (+18, -0) (Diff)
/source/blender/editors/space_node/node_relationships.c (+7, -7) (Diff)
/source/blender/editors/space_node/space_node.c (+32, -13) (Diff)
/source/blender/makesdna/DNA_space_types.h (+14, -21) (Diff)
/source/blender/makesrna/intern/rna_space.c (+25, -5) (Diff)