Fix more filebrowser not refreshing correctly after new message bus system.
This does not affect current blender2.8, but is mandatory for asset engine branch. Bottom line being, we also need to 'survey' changes in actual SpaceFileBrowser struct, not only its FileSelectParams sub-struct.
This commit is contained in:
parent
c501855eb6
commit
083f6af8f8
|
@ -370,6 +370,15 @@ static void file_main_region_message_subscribe(
|
|||
.notify = ED_area_do_msg_notify_tag_refresh,
|
||||
};
|
||||
|
||||
/* SpaceFile itself. */
|
||||
{
|
||||
PointerRNA ptr;
|
||||
RNA_pointer_create(&screen->id, &RNA_SpaceFileBrowser, sfile, &ptr);
|
||||
|
||||
/* All properties for this space type. */
|
||||
WM_msg_subscribe_rna(mbus, &ptr, NULL, &msg_sub_value_area_tag_refresh, __func__);
|
||||
}
|
||||
|
||||
/* FileSelectParams */
|
||||
{
|
||||
PointerRNA ptr;
|
||||
|
|
Loading…
Reference in New Issue