Node Editor / Group UI:

* Add, Move and Remove Socket operators missed a notifier for UI redraw.

Note: ND_DISPLAY seems to be for the Text editor only, according to WM_types.h, but seems to be used in quite a few places. 
Time to cleanup notifiers again.
This commit is contained in:
Thomas Dinges
2013-03-18 18:27:28 +00:00
parent 01e9dae3dc
commit 471238ebfc

View File

@@ -2072,6 +2072,8 @@ static int ntree_socket_add_exec(bContext *C, wmOperator *op)
sock->flag |= SELECT;
ntreeUpdateTree(ntree);
WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL);
return OPERATOR_FINISHED;
}
@@ -2115,6 +2117,8 @@ static int ntree_socket_remove_exec(bContext *C, wmOperator *UNUSED(op))
active_sock->flag |= SELECT;
ntreeUpdateTree(ntree);
WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL);
return OPERATOR_FINISHED;
}
@@ -2180,6 +2184,8 @@ static int ntree_socket_move_exec(bContext *C, wmOperator *op)
}
ntreeUpdateTree(ntree);
WM_event_add_notifier(C, NC_NODE | ND_DISPLAY, NULL);
return OPERATOR_FINISHED;
}