From 855fa737d70d4b01ef129a27ffc7d89b65dbc590 Mon Sep 17 00:00:00 2001 From: Peter Schlaile Date: Sun, 3 Aug 2008 15:56:35 +0000 Subject: [PATCH] == 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... --- source/blender/src/buttons_scene.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c index 3b0167d673c..fb6a7636e16 100644 --- a/source/blender/src/buttons_scene.c +++ b/source/blender/src/buttons_scene.c @@ -763,7 +763,16 @@ static void seq_panel_input() } 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,