diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-05-08 18:58:59 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-05-08 18:58:59 +0400 |
commit | e20bff4b60a496f553ba68994ecf1a4e2627fb81 (patch) | |
tree | 57f08554c033046e0c30de5167f228360a8dc798 /source/blender/makesrna | |
parent | 6f20ef6d870464a66ffa108b85c9ace405235f43 (diff) |
Fix #31363. Group interface sockets don't have a parent node, so the API function has to check that before making the update call.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index cffcca177b3..3d2737f9ff4 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -736,7 +736,8 @@ static bNodeLink *rna_NodeTree_link_new(bNodeTree *ntree, ReportList *reports, ret = nodeAddLink(ntree, fromnode, fromsock, tonode, tosock); if (ret) { - nodeUpdate(ntree, tonode); + if (tonode) + nodeUpdate(ntree, tonode); ntreeUpdateTree(ntree); |