diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-27 09:24:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-27 09:24:20 +0300 |
commit | 0908fc11900d285e4c18ec1ed6a2f10a3301552d (patch) | |
tree | 49f6ade9ffbc9ffc0661ca8e6f77a9a9312e4609 /source/blender/windowmanager/intern | |
parent | 5752e4f06f61f9df72454b81f2d7e3f008dc40eb (diff) |
Tool System: publish/subscribe to tool changes
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_toolsystem.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_toolsystem.c b/source/blender/windowmanager/intern/wm_toolsystem.c index 98e29a6f496..22643c63368 100644 --- a/source/blender/windowmanager/intern/wm_toolsystem.c +++ b/source/blender/windowmanager/intern/wm_toolsystem.c @@ -38,8 +38,11 @@ #include "BKE_library.h" #include "BKE_main.h" +#include "RNA_access.h" + #include "WM_api.h" #include "WM_types.h" +#include "WM_message.h" void WM_toolsystem_unlink(bContext *C, WorkSpace *workspace) { @@ -93,6 +96,12 @@ void WM_toolsystem_set(bContext *C, const bToolDef *tool) } WM_toolsystem_link(C, workspace); + + { + struct wmMsgBus *mbus = CTX_wm_message_bus(C); + WM_msg_publish_rna_prop( + mbus, &workspace->id, workspace, WorkSpace, tool_keymap); + } } void WM_toolsystem_init(bContext *C) |