diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-16 03:29:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-16 03:29:22 +0300 |
commit | 3d744dff5818bd51fd04ee01e72f1751a058c78b (patch) | |
tree | a0f5061f884fa360809966a12ae204664ce38e67 | |
parent | fb0acb194797d79b849d40076d54da0cadfeb1f1 (diff) |
Fix T63562: wrong viewport updates after editing group node sockets
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index a6aaca88e62..27efb6c9a10 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -2234,6 +2234,9 @@ static int ntree_socket_add_exec(bContext *C, wmOperator *op) ntreeUpdateTree(CTX_data_main(C), ntree); + snode_notify(C, snode); + snode_dag_update(C, snode); + WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL); return OPERATOR_FINISHED; @@ -2283,6 +2286,9 @@ static int ntree_socket_remove_exec(bContext *C, wmOperator *UNUSED(op)) ntreeUpdateTree(CTX_data_main(C), ntree); + snode_notify(C, snode); + snode_dag_update(C, snode); + WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL); return OPERATOR_FINISHED; @@ -2358,6 +2364,9 @@ static int ntree_socket_move_exec(bContext *C, wmOperator *op) ntreeUpdateTree(CTX_data_main(C), ntree); + snode_notify(C, snode); + snode_dag_update(C, snode); + WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL); return OPERATOR_FINISHED; |