Fix T63562: wrong viewport updates after editing group node sockets
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 16 Apr 2019 00:29:22 +0000 (02:29 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 16 Apr 2019 00:29:22 +0000 (02:29 +0200)
source/blender/editors/space_node/node_edit.c

index a6aaca8..27efb6c 100644 (file)
@@ -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;