diff options
author | Ton Roosendaal <ton@blender.org> | 2011-02-18 20:53:11 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-02-18 20:53:11 +0300 |
commit | 7a8a9b48755c7a7834b391cbc47391e51fc666d9 (patch) | |
tree | 15a00d8b06278ca03a61157c2074e1dcc4b32aa9 /source/blender/editors/space_node/node_state.c | |
parent | 7a29a44cf4b6a8c8b771ac39cf9234f7f5149acd (diff) |
Bugfix #26101
Node editor: icons in header sometimes were on wrong locations.
The click hotspots were also off...
Diffstat (limited to 'source/blender/editors/space_node/node_state.c')
-rw-r--r-- | source/blender/editors/space_node/node_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_state.c b/source/blender/editors/space_node/node_state.c index 4f2f204fbe6..332080f023c 100644 --- a/source/blender/editors/space_node/node_state.c +++ b/source/blender/editors/space_node/node_state.c @@ -117,21 +117,21 @@ static int do_header_node(SpaceNode *snode, bNode *node, float mx, float my) node->flag ^= NODE_PREVIEW; return 1; } - totr.xmin-=18.0f; + totr.xmin-=15.0f; } if(node->type == NODE_GROUP) { if(BLI_in_rctf(&totr, mx, my)) { snode_make_group_editable(snode, node); return 1; } - totr.xmin-=18.0f; + totr.xmin-=15.0f; } if(node->typeinfo->flag & NODE_OPTIONS) { if(BLI_in_rctf(&totr, mx, my)) { node->flag ^= NODE_OPTIONS; return 1; } - totr.xmin-=18.0f; + totr.xmin-=15.0f; } /* hide unused sockets */ if(BLI_in_rctf(&totr, mx, my)) { |