forked from bartvdbraak/blender
bugfix [#19983] clicking onto normal input of a material node crash
actually happened when clicking on any input
This commit is contained in:
parent
f21eb0603b
commit
89f9d3873d
@ -1675,7 +1675,9 @@ void ntreeSocketUseFlags(bNodeTree *ntree)
|
|||||||
|
|
||||||
/* tag all thats in use */
|
/* tag all thats in use */
|
||||||
for(link= ntree->links.first; link; link= link->next) {
|
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
|
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;
|
link->tosock->flag |= SOCK_IN_USE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user