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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-06-27 20:54:24 +0400
committerTon Roosendaal <ton@blender.org>2006-06-27 20:54:24 +0400
commite9c1e40681c61a26603541f7462f33432b02b135 (patch)
tree0003023593b6c709a06034e62c49025d9d158a17 /source
parentcfecc3b188f01f98ca8704d3cba48def77bbabed (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editnode.c9
1 files 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;
}