Node editor:
- Crash could occur on ALT+LMB remove link lines (read free'd mem)
- Button labels were handled as full buttons, disabling node usage
quite a lot, like drag, select, or create links.
(Caused by making all node labels buttons)
Brecht: old UI_NO_HILITE can be depricated, it was for bad overdraw
issues. I guess it's OK to not handle Label buttons at all...
for(but=block->buttons.first; but; but= but->next) {
if(but->flag & UI_NO_HILITE)
continue;
+ if(but->type==LABEL)
+ continue;
if(ui_but_contains_pt(but, mx, my))
/* give precedence to already activated buttons */
if(i>1) {
bNodeLink *link, *next;
- for(link= snode->edittree->links.first; link; link= link->next) {
+ for(link= snode->edittree->links.first; link; link= next) {
next= link->next;
if(cut_links_intersect(link, mcoords, i)) {