bugfix [#19983] clicking onto normal input of a material node crash

actually happened when clicking on any input
This commit is contained in:
Campbell Barton 2009-11-24 14:03:29 +00:00
parent f21eb0603b
commit 89f9d3873d

@ -1675,7 +1675,9 @@ void ntreeSocketUseFlags(bNodeTree *ntree)
/* tag all thats in use */
for(link= ntree->links.first; link; link= link->next) {
link->fromsock->flag |= SOCK_IN_USE;
if(link->fromsock) // FIXME, see below
link->fromsock->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;
}