[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46423] trunk/blender/source/blender/ makesrna/intern/rna_nodetree.c: Fix #31363. Group interface sockets don' t have a parent node, so the API function has to check that before making the update call.

Lukas Toenne lukas.toenne at googlemail.com
Tue May 8 16:58:59 CEST 2012


Revision: 46423
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46423
Author:   lukastoenne
Date:     2012-05-08 14:58:59 +0000 (Tue, 08 May 2012)
Log Message:
-----------
Fix #31363. Group interface sockets don't have a parent node, so the API function has to check that before making the update call.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_nodetree.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_nodetree.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2012-05-08 14:58:38 UTC (rev 46422)
+++ trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2012-05-08 14:58:59 UTC (rev 46423)
@@ -736,7 +736,8 @@
 	ret = nodeAddLink(ntree, fromnode, fromsock, tonode, tosock);
 	
 	if (ret) {
-		nodeUpdate(ntree, tonode);
+		if (tonode)
+			nodeUpdate(ntree, tonode);
 
 		ntreeUpdateTree(ntree);
 




More information about the Bf-blender-cvs mailing list