diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-29 19:14:09 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-29 19:14:09 +0400 |
commit | e04965ee1c47abf497df836a20da729e863d6849 (patch) | |
tree | f22dea146d752b547a59f3132b08e8db62326f90 /source/blender/blenkernel/intern | |
parent | d922d67054621a167439b355350d4eeabe62bf52 (diff) |
Set the NODE_OPTIONS flag for all nodes by default. If the node type has no options it will be ignored anyway. This makes sure that if options are added to a node type later on there is no need to do a versions patch to update this flag.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index fadf81966f9..87d3cd7209c 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -117,7 +117,7 @@ static void node_init(const struct bContext *C, bNodeTree *ntree, bNode *node) if (node->flag & NODE_INIT) return; - node->flag = NODE_SELECT | ntype->flag; + node->flag = NODE_SELECT | NODE_OPTIONS | ntype->flag; node->width = ntype->width; node->miniwidth = 42.0f; node->height = ntype->height; |