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:
Bastien Montagne 2018-01-29 12:50:15 +01:00
parent c501855eb6
commit 083f6af8f8
1 changed files with 9 additions and 0 deletions

View File

@ -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;