diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-29 19:14:11 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-29 19:14:11 +0400 |
commit | ff42bfe242ca79d90d30742e07e2e2dc71447930 (patch) | |
tree | c4cdc377f3ed34ae29280cbb50497f6d2ff4dbfa /source/blender/makesrna | |
parent | e04965ee1c47abf497df836a20da729e863d6849 (diff) |
Remove the NODE_OPTIONS flag usage from node->typeinfo. This is a redundant flag which can be replaced by simply checking for nodetype->uifunc/uifuncbut callbacks (if these callbacks are defined the node
type generally supports options). Note that the node->flag still uses NODE_OPTIONS as a switch to toggle the display of such options!
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 825ec43ebdc..e16f2a5f8ba 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -1336,9 +1336,6 @@ static bNodeType *rna_Node_register_base(Main *bmain, ReportList *reports, Struc nt->freefunc_api = (have_function[5]) ? rna_Node_free : NULL; nt->uifunc = (have_function[6]) ? rna_Node_draw_buttons : NULL; nt->uifuncbut = (have_function[7]) ? rna_Node_draw_buttons_ext : NULL; - /* node buttons are only drawn if the options flag is set */ - if (nt->uifunc || nt->uifuncbut) - nt->flag |= NODE_OPTIONS; /* sanitize size values in case not all have been registered */ if (nt->maxwidth < nt->minwidth) |