workaround for crash when dragging nodes

This commit is contained in:
Campbell Barton
2009-11-09 11:15:49 +00:00
parent 0750a8dc5c
commit 0bb70e4fae

View File

@@ -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;
}
}