forked from bartvdbraak/blender
Show dash instead of filename when displaying frame above image sequence length.
This commit is contained in:
parent
2ad8ec5eaf
commit
3451baf141
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user