diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-20 12:48:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-20 12:48:48 +0400 |
commit | 84d06f252e1637e76abd59478183c7afd4a80a9e (patch) | |
tree | bbcc4c1cc1f2c3d094198e9c5c411ee9f733a243 /source/blender/editors/space_sequencer | |
parent | e1de1214a44c23ae0a7826ea6867b5da6dc58d60 (diff) |
tag & comment unused vars with /* UNUSED */
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index da769184669..bd93a1270f6 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -1483,9 +1483,13 @@ static int sequencer_cut_exec(bContext *C, wmOperator *op) sort_seq(scene); } - WM_event_add_notifier(C, NC_SCENE|ND_SEQUENCER, scene); - - return OPERATOR_FINISHED; + if(changed) { + WM_event_add_notifier(C, NC_SCENE|ND_SEQUENCER, scene); + return OPERATOR_FINISHED; + } + else { + return OPERATOR_CANCELLED; + } } |