2.5
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...
This commit is contained in:
@@ -2843,6 +2843,8 @@ static uiBut *ui_but_find_mouse_over(ARegion *ar, int x, int y)
|
||||
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 */
|
||||
|
||||
@@ -2118,7 +2118,7 @@ static int cut_links_exec(bContext *C, wmOperator *op)
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user