diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-29 19:14:08 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-29 19:14:08 +0400 |
commit | d922d67054621a167439b355350d4eeabe62bf52 (patch) | |
tree | b5e430793fa357d6ffaae7296bd60cf20f86781c | |
parent | d73529b29631c74f1954a452577e8f16905630b6 (diff) |
Reverted a TODO comment from r54429 which disabled the NODE_OPTIONS flag check, so node option buttons could not be disabled at all. This was meant as a workaround to avoid adding do_versions just to set initial NODE_OPTIONS flags on old nodes, but needs a better solution.
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 39287226bed..2a3545847f2 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -402,8 +402,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node) } /* buttons rect? */ - /* TODO: NODE_OPTION shall be cleaned up */ - if (/*(node->flag & NODE_OPTIONS) && */node->typeinfo->uifunc) { + if ((node->flag & NODE_OPTIONS) && node->typeinfo->uifunc) { dy -= NODE_DYS / 2; /* set this for uifunc() that don't use layout engine yet */ |