Revision: 55625
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55625
Author:   ton
Date:     2013-03-27 12:29:00 +0000 (Wed, 27 Mar 2013)
Log Message:
-----------
Tiny fix for sequencer: 

"View selected strip(s)" now includes the active strip (which can be deselected 
in cases). Less confusing this way, also because active strip is being drawn 
very visible.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c

Modified: trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c       
2013-03-27 11:26:10 UTC (rev 55624)
+++ trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c       
2013-03-27 12:29:00 UTC (rev 55625)
@@ -2328,6 +2328,7 @@
        View2D *v2d = UI_view2d_fromcontext(C);
        ARegion *ar = CTX_wm_region(C);
        Editing *ed = BKE_sequencer_editing_get(scene, FALSE);
+       Sequence *last_seq = BKE_sequencer_active_get(scene);
        Sequence *seq;
        rctf cur_new = v2d->cur;
 
@@ -2344,7 +2345,7 @@
                return OPERATOR_CANCELLED;
 
        for (seq = ed->seqbasep->first; seq; seq = seq->next) {
-               if (seq->flag & SELECT) {
+               if ((seq->flag & SELECT) || (seq == last_seq)) {
                        xmin = min_ii(xmin, seq->startdisp);
                        xmax = max_ii(xmax, seq->enddisp);
 

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to