Page MenuHome

svn_diff_rna_nodetree.c

svn_diff_rna_nodetree.c

Index: blender/source/blender/makesrna/intern/rna_nodetree.c
===================================================================
--- blender/source/blender/makesrna/intern/rna_nodetree.c (revision 46381)
+++ blender/source/blender/makesrna/intern/rna_nodetree.c (working copy)
@@ -721,7 +721,11 @@
nodeFindNode(ntree, fromsock, &fromnode, NULL, &from_in_out);
nodeFindNode(ntree, tosock, &tonode, NULL, &to_in_out);
-
+
+ if (tonode == NULL) {
+ BKE_reportf(reports, RPT_ERROR, "Could not find node for input NodeSocket");
+ return NULL;
+ }
if (&from_in_out == &to_in_out) {
BKE_reportf(reports, RPT_ERROR, "Same input/output direction of sockets");
return NULL;
@@ -734,7 +738,7 @@
nodeRemSocketLinks(ntree, fromsock);
ret = nodeAddLink(ntree, fromnode, fromsock, tonode, tosock);
-
+
if (ret) {
nodeUpdate(ntree, tonode);

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7a/7f/8b1f971d5a584fcdad5de5d48bd0

Event Timeline