Fix missing UI updates, caused by own earlier commit
Caused by 46aa70cb48
.
RNA would send property update notifiers with the owner ID as `reference` data.
Since above's commit we'd only send the notifiers to editors if the reference
data address matches the space's address. So editors wouldn't get the notifiers
at all.
The owner ID for space properties is always the screen AFAIK. So allow
notifiers with the screen as reference to be passed to editors as well, think
this is reasonable to do either way.
For example, steps to reproduce were:
* Open Asset Browser
* Mark some data-blocks of different types as assets (e.g. object & its
material)
* Switch between the categories in the Asset Browser. The asset list wouldn't
be updated.
This commit is contained in:
parent
1b1f8da5dd
commit
8c6337e587
|
@ -577,9 +577,12 @@ void wm_event_do_notifiers(bContext *C)
|
|||
}
|
||||
|
||||
ED_screen_areas_iter (win, screen, area) {
|
||||
if ((note->category == NC_SPACE) && note->reference &&
|
||||
(note->reference != area->spacedata.first)) {
|
||||
continue;
|
||||
if ((note->category == NC_SPACE) && note->reference) {
|
||||
/* Filter out notifiers sent to other spaces. RNA sets the reference to the owning ID
|
||||
* though, the screen, so let notifiers through that reference the entire screen. */
|
||||
if ((note->reference != area->spacedata.first) && (note->reference != screen)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
wmSpaceTypeListenerParams area_params = {
|
||||
.window = win,
|
||||
|
|
Loading…
Reference in New Issue