Fix T63562: wrong viewport updates after editing group node sockets
This commit is contained in:
@@ -2234,6 +2234,9 @@ static int ntree_socket_add_exec(bContext *C, wmOperator *op)
|
|||||||
|
|
||||||
ntreeUpdateTree(CTX_data_main(C), ntree);
|
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);
|
WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL);
|
||||||
|
|
||||||
return OPERATOR_FINISHED;
|
return OPERATOR_FINISHED;
|
||||||
@@ -2283,6 +2286,9 @@ static int ntree_socket_remove_exec(bContext *C, wmOperator *UNUSED(op))
|
|||||||
|
|
||||||
ntreeUpdateTree(CTX_data_main(C), ntree);
|
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);
|
WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL);
|
||||||
|
|
||||||
return OPERATOR_FINISHED;
|
return OPERATOR_FINISHED;
|
||||||
@@ -2358,6 +2364,9 @@ static int ntree_socket_move_exec(bContext *C, wmOperator *op)
|
|||||||
|
|
||||||
ntreeUpdateTree(CTX_data_main(C), ntree);
|
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);
|
WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL);
|
||||||
|
|
||||||
return OPERATOR_FINISHED;
|
return OPERATOR_FINISHED;
|
||||||
|
Reference in New Issue
Block a user