diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-28 10:35:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-28 10:38:42 +0300 |
commit | 9ec8887599b1c14dac47cca1a073fa50b333d5ee (patch) | |
tree | ab26fd2c103e3585b1622bdf80bd8ef86fd0cd48 /source/blender/editors/space_view3d | |
parent | bd227d13787ccecabb5005d7211ce6ce04f60104 (diff) |
Fix invalid area tool being set from message passing
This wasn't working with multiple windows,
WM_toolsystem_do_msg_notify_tag_refresh could use a workspace
from a different window to the screen that owned the area.
Instead of fixing, remove these since they aren't needed anymore
since changing modes now refreshes the tool system.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index c1891865d6d..a90e59745be 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -980,7 +980,7 @@ static void view3d_main_region_message_subscribe(const struct bContext *C, struct WorkSpace *UNUSED(workspace), struct Scene *UNUSED(scene), struct bScreen *UNUSED(screen), - struct ScrArea *sa, + struct ScrArea *UNUSED(sa), struct ARegion *ar, struct wmMsgBus *mbus) { @@ -1054,16 +1054,6 @@ static void view3d_main_region_message_subscribe(const struct bContext *C, break; } } - - { - wmMsgSubscribeValue msg_sub_value_region_tag_refresh = { - .owner = ar, - .user_data = sa, - .notify = WM_toolsystem_do_msg_notify_tag_refresh, - }; - WM_msg_subscribe_rna_anon_prop(mbus, Object, mode, &msg_sub_value_region_tag_refresh); - WM_msg_subscribe_rna_anon_prop(mbus, LayerObjects, active, &msg_sub_value_region_tag_refresh); - } } /* concept is to retrieve cursor type context-less */ |