Revision: 15936
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15936
Author:   schlaile
Date:     2008-08-03 17:56:35 +0200 (Sun, 03 Aug 2008)

Log Message:
-----------
== Sequencer ==

Fixes:
[#15082] Sequencer: for image strips, the Input file field disappears if the 
cursor is out of the selected strip

also it wasn't really a bug, since the file name of image input strips
_has_ to depend on CFRA.

Well, we choose the next possible image strip, which is most likely the thing,
most people expected...

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_scene.c

Modified: trunk/blender/source/blender/src/buttons_scene.c
===================================================================
--- trunk/blender/source/blender/src/buttons_scene.c    2008-08-03 15:45:53 UTC 
(rev 15935)
+++ trunk/blender/source/blender/src/buttons_scene.c    2008-08-03 15:56:35 UTC 
(rev 15936)
@@ -763,8 +763,17 @@
        }
 
        if (last_seq->type == SEQ_IMAGE) {
-               StripElem * se = give_stripelem(last_seq, CFRA);
+               int cfra = CFRA;
+               StripElem * se;
 
+               if(last_seq->startdisp >cfra) {
+                       cfra = last_seq->startdisp;
+               } else if (last_seq->enddisp <= cfra) {
+                       cfra = last_seq->enddisp - 1;
+               }
+
+               se = give_stripelem(last_seq, cfra);
+
                if (se) {
                        uiDefBut(block, TEX, 
                                 B_SEQ_BUT_RELOAD_FILE, "File: ", 


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

Reply via email to