diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-16 20:16:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-16 20:16:05 +0400 |
commit | 54bfdb9296fa1dd8612181d82f4f925111db782f (patch) | |
tree | b0a5a8108572f4103669012c07a4e15a1bd8f213 /source/blender/editors/space_node/node_edit.c | |
parent | 7881d2c1a879702223f742b7d39b620914d2263f (diff) |
toggling node hide/sockets/options was triggering a re-render.
Diffstat (limited to 'source/blender/editors/space_node/node_edit.c')
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 5e5ffe2049c..8b7251c2018 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -3986,9 +3986,9 @@ static int node_hide_toggle_exec(bContext *C, wmOperator *UNUSED(op)) return OPERATOR_CANCELLED; node_flag_toggle_exec(snode, NODE_HIDDEN); - - snode_notify(C, snode); - + + WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL); + return OPERATOR_FINISHED; } @@ -4049,7 +4049,7 @@ static int node_options_toggle_exec(bContext *C, wmOperator *UNUSED(op)) node_flag_toggle_exec(snode, NODE_OPTIONS); - snode_notify(C, snode); + WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL); return OPERATOR_FINISHED; } @@ -4100,7 +4100,7 @@ static int node_socket_toggle_exec(bContext *C, wmOperator *UNUSED(op)) ntreeUpdateTree(snode->edittree); - snode_notify(C, snode); + WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL); return OPERATOR_FINISHED; } |