diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-09 19:04:32 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-09 19:04:32 +0400 |
commit | 3451baf141c731f730960c5b6c951136532674f4 (patch) | |
tree | c5cebe60320bac7da23c71987a1d3b4bd624d90e /source/blender/editors/space_clip/clip_buttons.c | |
parent | 2ad8ec5eaf32b7c5d7291ff8c23541f84c30730c (diff) |
Show dash instead of filename when displaying frame above image sequence length.
Diffstat (limited to 'source/blender/editors/space_clip/clip_buttons.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_buttons.c | 10 |
1 files 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); } |