[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55749] trunk/blender/source/blender/nodes /intern/node_socket.c: Fix for missing integer 'type' of the virtual extension socket in group nodes.

Lukas Toenne lukas.toenne at googlemail.com
Wed Apr 3 09:56:36 CEST 2013


Revision: 55749
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55749
Author:   lukastoenne
Date:     2013-04-03 07:56:36 +0000 (Wed, 03 Apr 2013)
Log Message:
-----------
Fix for missing integer 'type' of the virtual extension socket in group nodes. This could lead to crash in node groups when trying to undefined stack values of the extension socket. type just needs to be set to SOCK_CUSTOM==-1, so the BI execution knows not to look for a stack entry.

Modified Paths:
--------------
    trunk/blender/source/blender/nodes/intern/node_socket.c

Modified: trunk/blender/source/blender/nodes/intern/node_socket.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/node_socket.c	2013-04-03 07:42:56 UTC (rev 55748)
+++ trunk/blender/source/blender/nodes/intern/node_socket.c	2013-04-03 07:56:36 UTC (rev 55749)
@@ -420,6 +420,9 @@
 	/* associate the RNA type with the socket type */
 	RNA_struct_blender_type_set(srna, stype);
 	
+	/* extra type info for standard socket types */
+	stype->type = SOCK_CUSTOM;
+	
 	ED_init_node_socket_type_virtual(stype);
 	
 	return stype;




More information about the Bf-blender-cvs mailing list