[Bf-blender-cvs] [083f6af8f8c] blender2.8: Fix more filebrowser not refreshing correctly after new message bus system.

Bastien Montagne noreply at git.blender.org
Mon Jan 29 12:52:23 CET 2018


Commit: 083f6af8f8c79fba937c0506fe32a31de038698c
Author: Bastien Montagne
Date:   Mon Jan 29 12:50:15 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB083f6af8f8c79fba937c0506fe32a31de038698c

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.

===================================================================

M	source/blender/editors/space_file/space_file.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list