diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 07:56:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 07:56:36 +0300 |
commit | 1ce8a7f3d032830386a0aebf3c3ff6c940e1181a (patch) | |
tree | ebe4aa55a9f4a7f8c0f3689e5cffd47c39b59664 /source/blender/windowmanager/message_bus/intern/wm_message_bus.c | |
parent | 70841e58c42ec9381c16db4e98109a3d165cd841 (diff) |
Fix incorrect message bus tag count
Diffstat (limited to 'source/blender/windowmanager/message_bus/intern/wm_message_bus.c')
-rw-r--r-- | source/blender/windowmanager/message_bus/intern/wm_message_bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/message_bus/intern/wm_message_bus.c b/source/blender/windowmanager/message_bus/intern/wm_message_bus.c index 7183655b0de..dba38dc8c8c 100644 --- a/source/blender/windowmanager/message_bus/intern/wm_message_bus.c +++ b/source/blender/windowmanager/message_bus/intern/wm_message_bus.c @@ -86,6 +86,9 @@ void WM_msgbus_clear_by_owner(struct wmMsgBus *mbus, void *owner) for (wmMsgSubscribeValueLink *msg_lnk = msg_key->values.first; msg_lnk; msg_lnk = msg_lnk_next) { msg_lnk_next = msg_lnk->next; if (msg_lnk->params.owner == owner) { + if (msg_lnk->params.tag) { + mbus->messages_tag_count -= 1; + } if (msg_lnk->params.free_data) { msg_lnk->params.free_data(msg_key, &msg_lnk->params); } |