forked from bartvdbraak/blender
Fix T46106: Hidden socket w/ node link from Py API
Internally this was OK, but an invalid state from the users POV.
This commit is contained in:
parent
5611237391
commit
2db71782e7
@ -792,6 +792,11 @@ static bNodeLink *rna_NodeTree_link_new(bNodeTree *ntree, ReportList *reports,
|
|||||||
ret = nodeAddLink(ntree, fromnode, fromsock, tonode, tosock);
|
ret = nodeAddLink(ntree, fromnode, fromsock, tonode, tosock);
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
||||||
|
/* not an issue from the UI, clear hidden from API to keep valid state. */
|
||||||
|
fromsock->flag &= ~SOCK_HIDDEN;
|
||||||
|
tosock->flag &= ~SOCK_HIDDEN;
|
||||||
|
|
||||||
if (tonode)
|
if (tonode)
|
||||||
nodeUpdate(ntree, tonode);
|
nodeUpdate(ntree, tonode);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user