diff options
author | Hans Goudey <h.goudey@me.com> | 2020-12-19 02:04:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-12-19 02:04:52 +0300 |
commit | c106b07e233889323e501cc033ac2010b2799bdc (patch) | |
tree | 1f983f43847549ee56c281629a61e057358a6928 /source/blender/makesdna | |
parent | 6367bc716a9e902bf75b2164cfd75702e6f13acb (diff) |
Cleanup: Remove unused variables from the bNode struct
In some cases the variables were set but never used anywhere.
Differential Revision: https://developer.blender.org/D9889
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index d6b5e3ed493..743850621bc 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -218,15 +218,14 @@ typedef struct bNode { char name[64]; int flag; short type; - char _pad[2]; /** Both for dependency and sorting. */ short done, level; - /** Lasty: check preview render status, menunr: browse ID blocks. */ - short lasty, menunr; - /** For groupnode, offset in global caller stack. */ - short stack_index; - /** Number of this node in list, used for UI exec events. */ - short nr; + + /** Used as a boolean for execution. */ + uint8_t need_exec; + + char _pad[1]; + /** Custom user-defined color. */ float color[3]; @@ -264,10 +263,6 @@ typedef struct bNode { short custom1, custom2; float custom3, custom4; - /** Need_exec is set as UI execution event, exec is flag during exec. */ - short need_exec, exec; - /** Optional extra storage for use in thread (read only then!). */ - void *threaddata; /** Entire boundbox (worldspace). */ rctf totr; /** Optional buttons area. */ |