From 3451baf141c731f730960c5b6c951136532674f4 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 9 May 2013 15:04:32 +0000 Subject: [PATCH] Show dash instead of filename when displaying frame above image sequence length. --- source/blender/editors/space_clip/clip_buttons.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/space_clip/clip_buttons.c b/source/blender/editors/space_clip/clip_buttons.c index 8bf06e402e4..c33cf68a20a 100644 --- a/source/blender/editors/space_clip/clip_buttons.c +++ b/source/blender/editors/space_clip/clip_buttons.c @@ -565,10 +565,16 @@ void uiTemplateMovieclipInformation(uiLayout *layout, PointerRNA *ptr, const cha char filepath[FILE_MAX]; const char *file; - BKE_movieclip_filename_for_frame(clip, user, filepath); - file = BLI_last_slash(filepath); + if (framenr <= clip->len) { + BKE_movieclip_filename_for_frame(clip, user, filepath); + file = BLI_last_slash(filepath); + } + else { + file = "-"; + } BLI_snprintf(str, sizeof(str), IFACE_("File: %s"), file); + uiItemL(col, str, ICON_NONE); }