Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-01-29 14:50:15 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-01-29 14:50:15 +0300
commit083f6af8f8c79fba937c0506fe32a31de038698c (patch)
tree74324bab5d5826007ec25ce32accc16597cfa9a3 /source/blender/editors/space_file/space_file.c
parentc501855eb6a1e20d98763501036b130e1976c5d0 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r--source/blender/editors/space_file/space_file.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index 17ba15ca2e9..3c90f2957df 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -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;