diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-09 14:15:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-09 14:15:49 +0300 |
commit | 0bb70e4fae11603e5a267825d66312a2ef34da39 (patch) | |
tree | 54aad877b1b6963f9d2ce7e871fee94ee83079ca /source/blender | |
parent | 0750a8dc5c3ec4daf9d6ff7637460d8bac8f58e8 (diff) |
workaround for crash when dragging nodes
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index 2776444c8a0..6b2c812b37e 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -1662,7 +1662,8 @@ void ntreeSocketUseFlags(bNodeTree *ntree) /* tag all thats in use */ for(link= ntree->links.first; link; link= link->next) { link->fromsock->flag |= SOCK_IN_USE; - link->tosock->flag |= SOCK_IN_USE; + if(link->tosock) // FIXME This can be NULL, when dragging a new link in the UI, should probably copy the node tree for preview render - campbell + link->tosock->flag |= SOCK_IN_USE; } } |