From e9c1e40681c61a26603541f7462f33432b02b135 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 27 Jun 2006 16:54:24 +0000 Subject: [PATCH] Bugfix #4505 Node Editor. Fix for a fix: cleanup of abuse of uiBlock accidentally disabled the feature that only makes Node buttons accessible when visible. This to allow Nodes to overlap and properly used. --- source/blender/src/editnode.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/blender/src/editnode.c b/source/blender/src/editnode.c index 826df9cde6c..99cc9486ba6 100644 --- a/source/blender/src/editnode.c +++ b/source/blender/src/editnode.c @@ -1754,7 +1754,7 @@ static int node_uiDoBlocks(ScrArea *sa, short event) ListBase listb= *lb; bNode *node; rctf rect; - void *prev; + void *prev, *next; int retval= UI_NOTHING; short mval[2]; @@ -1781,13 +1781,18 @@ static int node_uiDoBlocks(ScrArea *sa, short event) if(block) { if(node == visible_node(snode, &rect)) { - + /* when there's menus, the prev pointer becomes zero! */ prev= ((struct Link *)block)->prev; + next= ((struct Link *)block)->next; + ((struct Link *)block)->prev= NULL; + ((struct Link *)block)->next= NULL; lb->first= lb->last= block; retval= uiDoBlocks(lb, event); + ((struct Link *)block)->prev= prev; + ((struct Link *)block)->next= next; break; }