diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-09-08 11:05:27 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-09-08 11:05:27 +0400 |
commit | 3dccd96ac705011ac396a3eb1d3b07a18ef485a7 (patch) | |
tree | d01d1a3bc5276f2ca509b66e32ff077b9ec8e41d /source/blender/nodes/intern | |
parent | 595ed90fe32c0621b47f1b3960be54b47002fd17 (diff) |
Fixed potential issue in mirrored loop node sockets. These are currently not used, but clang pointed this out.
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r-- | source/blender/nodes/intern/node_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_common.c b/source/blender/nodes/intern/node_common.c index 07f3eb943cc..d7830b6a260 100644 --- a/source/blender/nodes/intern/node_common.c +++ b/source/blender/nodes/intern/node_common.c @@ -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); |