diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-01-14 05:06:08 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-01-14 05:06:08 +0300 |
commit | 36229bd39a35bdcfd9c37d6fc5ba289bb5d01f74 (patch) | |
tree | 675716a139e0841135883353b8a0829843e73525 /source/blender/editors/transform | |
parent | f3c89524c39d780b4962627f324de392842d6f1a (diff) |
Missing notifiers in some transform orientations operators.
Also, nice harmless typo (only because KM_SHIFT|KM_CLICK (1|3) == KM_SHIFT|KM_CTRL (1|2))
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_ops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c index f3789880ce9..0601d0b296e 100644 --- a/source/blender/editors/transform/transform_ops.c +++ b/source/blender/editors/transform/transform_ops.c @@ -108,7 +108,7 @@ static int snap_type_exec(bContext *C, wmOperator *op) ts->snap_mode = RNA_enum_get(op->ptr,"type"); - WM_event_add_notifier(C, NC_SCENE|ND_MODE, NULL); /* header redraw */ + WM_event_add_notifier(C, NC_SCENE|ND_TOOLSETTINGS, NULL); /* header redraw */ return OPERATOR_FINISHED; } @@ -187,6 +187,7 @@ static int delete_orientation_exec(bContext *C, wmOperator *op) BIF_removeTransformOrientationIndex(C, selected_index); WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, CTX_wm_view3d(C)); + WM_event_add_notifier(C, NC_SCENE|NA_EDITED, CTX_data_scene(C)); return OPERATOR_FINISHED; } @@ -237,6 +238,7 @@ static int create_orientation_exec(bContext *C, wmOperator *op) BIF_createTransformOrientation(C, op->reports, name, use, overwrite); WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, CTX_wm_view3d(C)); + WM_event_add_notifier(C, NC_SCENE|NA_EDITED, CTX_data_scene(C)); return OPERATOR_FINISHED; } @@ -863,7 +865,7 @@ void transform_keymap_for_space(wmKeyConfig *keyconf, wmKeyMap *keymap, int spac km = WM_keymap_add_item(keymap, "WM_OT_context_toggle", TABKEY, KM_PRESS, KM_SHIFT, 0); RNA_string_set(km->ptr, "path", "tool_settings.snap"); - km = WM_keymap_add_item(keymap, "TRANSFORM_OT_snap_type", TABKEY, KM_PRESS, KM_SHIFT|KM_CLICK, 0); + km = WM_keymap_add_item(keymap, "TRANSFORM_OT_snap_type", TABKEY, KM_PRESS, KM_SHIFT|KM_CTRL, 0); break; case SPACE_ACTION: |