Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-05-29 19:14:08 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-05-29 19:14:08 +0400
commitd922d67054621a167439b355350d4eeabe62bf52 (patch)
treeb5e430793fa357d6ffaae7296bd60cf20f86781c /source/blender/editors/space_node/node_draw.c
parentd73529b29631c74f1954a452577e8f16905630b6 (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.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c3
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 */