diff options
author | Emanuel Claesson <emanuel.claesson@gmail.com> | 2013-11-25 07:55:26 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-11-25 15:21:45 +0400 |
commit | 3ca4387bc80b17d945d3ced2f55fd2ae6d962b1b (patch) | |
tree | 18e50d21863c51a95067176513d225fc0ee802a7 /source/blender/editors/space_view3d/view3d_ops.c | |
parent | 20769605593e6f850d30169175a01757f3e0fbb6 (diff) |
UI: remove unnecessary confirmation popups
This makes a number of operators no longer ask for confirmation, rather it will
show an info message after performing the operation. Ref T37422 for decision. In
particular, these were changed:
* Delete objects, bones, keyframes, masks, mask curves, motion tracks, markers.
* Clear and delete keyframes in the 3D view.
* Align bone to parents.
* Separate bones from armature.
* Group/ungroup metastrips in sequencer.
* Copy/paste objects to/from buffer.
Reviewed By: brecht, dingto
Differential Revision: http://developer.blender.org/D35
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_ops.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_ops.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_ops.c b/source/blender/editors/space_view3d/view3d_ops.c index dec9085baeb..111b2ea3143 100644 --- a/source/blender/editors/space_view3d/view3d_ops.c +++ b/source/blender/editors/space_view3d/view3d_ops.c @@ -46,6 +46,7 @@ #include "BKE_blender.h" #include "BKE_context.h" #include "BKE_main.h" +#include "BKE_report.h" #include "RNA_access.h" @@ -76,6 +77,8 @@ static int view3d_copybuffer_exec(bContext *C, wmOperator *op) BLI_make_file_string("/", str, BLI_temporary_dir(), "copybuffer.blend"); BKE_copybuffer_save(str, op->reports); + BKE_report(op->reports, RPT_INFO, "Copied selected objects to buffer"); + return OPERATOR_FINISHED; } @@ -88,7 +91,6 @@ static void VIEW3D_OT_copybuffer(wmOperatorType *ot) ot->description = "Selected objects are saved in a temp file"; /* api callbacks */ - ot->invoke = WM_operator_confirm; ot->exec = view3d_copybuffer_exec; ot->poll = ED_operator_view3d_active; } @@ -102,6 +104,8 @@ static int view3d_pastebuffer_exec(bContext *C, wmOperator *op) WM_event_add_notifier(C, NC_WINDOW, NULL); + BKE_report(op->reports, RPT_INFO, "Objects pasted from buffer"); + return OPERATOR_FINISHED; } @@ -114,7 +118,6 @@ static void VIEW3D_OT_pastebuffer(wmOperatorType *ot) ot->description = "Contents of copy buffer gets pasted"; /* api callbacks */ - ot->invoke = WM_operator_confirm; ot->exec = view3d_pastebuffer_exec; ot->poll = ED_operator_view3d_active; |