[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33351] branches/particles-2010/source/ blender/nodes/intern/SIM_util.c: Small bugfix for sockets that don' t have a node in the stack (group node default sockets).

Lukas Toenne lukas.toenne at googlemail.com
Sat Nov 27 13:06:30 CET 2010


Revision: 33351
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33351
Author:   lukastoenne
Date:     2010-11-27 13:06:30 +0100 (Sat, 27 Nov 2010)

Log Message:
-----------
Small bugfix for sockets that don't have a node in the stack (group node default sockets). This should be replaced by a more high-level function set, working directly with ndoes/sockets instead of low-level event lists.

Modified Paths:
--------------
    branches/particles-2010/source/blender/nodes/intern/SIM_util.c

Modified: branches/particles-2010/source/blender/nodes/intern/SIM_util.c
===================================================================
--- branches/particles-2010/source/blender/nodes/intern/SIM_util.c	2010-11-27 11:23:11 UTC (rev 33350)
+++ branches/particles-2010/source/blender/nodes/intern/SIM_util.c	2010-11-27 12:06:30 UTC (rev 33351)
@@ -471,7 +471,8 @@
 void sim_input_begin(SimExecData *execdata, SimSocketStack *sock, SimSocketIterator *iter)
 {
 	/* make sure the input socket is valid */
-	sim_wait_for_events(execdata, &sock->node->events);
+	if (sock->node)
+		sim_wait_for_events(execdata, &sock->node->events);
 	
 	iter->valid = 1;
 	if (execdata->error) {





More information about the Bf-blender-cvs mailing list