diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-14 04:47:25 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-14 04:47:25 +0300 |
commit | f3c89524c39d780b4962627f324de392842d6f1a (patch) | |
tree | 68601ab9a046f776fa637e861f05ac5c06a38f6f /source/blender/editors | |
parent | 61d4ff5890a21672e1e757484a436c0152ab802a (diff) |
Fix [#20663] Mouse cursor icon changes back to default in edit mode
Seemed simple but actually turned out to be quite complex.
ND_MODE notifier was being misused, changed to ND_TOOLSETTINGS
Note: Although the fix itself doesn't involve this much, debugging uncovered
that listeners can't rely on notifier->swinid to be correct, since notifiers can
now be added from RNA without a region context.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 4125ced4e71..e45c8bc48ee 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -3773,7 +3773,7 @@ static int scene_delete_exec(bContext *C, wmOperator *op) { Scene *scene= CTX_data_scene(C); - WM_event_add_notifier(C, NC_SCENE|ND_SCENEDELETE, scene); + WM_event_add_notifier(C, NC_SCENE|NA_REMOVED, scene); return OPERATOR_FINISHED; } diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index b23b1b38804..fe3ec2a5e50 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -573,6 +573,7 @@ static void view3d_header_area_listener(ARegion *ar, wmNotifier *wmn) case ND_OB_SELECT: case ND_MODE: case ND_LAYER: + case ND_TOOLSETTINGS: ED_region_tag_redraw(ar); break; } |