Fixed potential issue in mirrored loop node sockets. These are currently not used...
authorLukas Toenne <lukas.toenne@googlemail.com>
Thu, 8 Sep 2011 07:05:27 +0000 (07:05 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Thu, 8 Sep 2011 07:05:27 +0000 (07:05 +0000)
source/blender/nodes/intern/node_common.c

index 07f3eb943cc891b81f145089432f1a7f547d9a05..d7830b6a260b35bac62745f53ec1710dfbf14a7f 100644 (file)
@@ -878,7 +878,7 @@ static void loop_sync(bNodeTree *ntree, int sync_in_out)
                while (sync && ((sync->flag & SOCK_INTERNAL) || !(sync->flag & SOCK_DYNAMIC)))
                        sync = sync->next;
                
-               if (!(sync->flag & SOCK_INTERNAL) && (sync->flag & SOCK_DYNAMIC)) {
+               if (sync && !(sync->flag & SOCK_INTERNAL) && (sync->flag & SOCK_DYNAMIC)) {
                        if (sock->storage==NULL) {
                                /* if mirror index is 0, the sockets is newly added and a new mirror must be created. */
                                mirror = node_group_expose_socket(ntree, sock, sync_in_out);