Fix T41818: Missing refresh on Undo for nodes (mask example)
Added a special notifier now NC_WM|ND_UNDO in order to deal with such cases and now compositor/image will refresh when undo happens. There are much more ways to fail compo to update the resul, like undoing while it's not visible and so, but as mont29 said -- let's at least fix obvious crap in the workflow.
This commit is contained in:
@@ -539,6 +539,12 @@ static void image_listener(bScreen *sc, ScrArea *sa, wmNotifier *wmn)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case NC_WM:
|
||||
if(wmn->data == ND_UNDO) {
|
||||
ED_area_tag_redraw(sa);
|
||||
ED_area_tag_refresh(sa);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user