Fix #104166: Add redraw for asset marking and unmarking
When the users click the "Mark as Asset" with the mouse hover the fake user button, the button was not refreshed. In fact, the areas are not listening to the "NC_ID NA_EDITED", which is the signal emitted after an asset is marked/unmarked. Because of this, the areas aren't redrawn (especially the ID buttons). This little patch adds the event listening for the areas where this problem is happening node editor and properties editor. Pull Request #104694
This commit is contained in:
@@ -821,7 +821,7 @@ static void node_region_listener(const wmRegionListenerParams *params)
|
||||
}
|
||||
break;
|
||||
case NC_ID:
|
||||
if (wmn->action == NA_RENAME) {
|
||||
if (ELEM(wmn->action, NA_RENAME, NA_EDITED)) {
|
||||
ED_region_tag_redraw(region);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user