[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56627] trunk/blender/source/blender/ editors/space_clip/clip_buttons.c: Show dash instead of filename when displaying frame above image sequence length .
Sergey Sharybin
sergey.vfx at gmail.com
Thu May 9 17:04:32 CEST 2013
Revision: 56627
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56627
Author: nazgul
Date: 2013-05-09 15:04:32 +0000 (Thu, 09 May 2013)
Log Message:
-----------
Show dash instead of filename when displaying frame above image sequence length.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_clip/clip_buttons.c
Modified: trunk/blender/source/blender/editors/space_clip/clip_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/clip_buttons.c 2013-05-09 14:57:20 UTC (rev 56626)
+++ trunk/blender/source/blender/editors/space_clip/clip_buttons.c 2013-05-09 15:04:32 UTC (rev 56627)
@@ -565,10 +565,16 @@
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);
}
More information about the Bf-blender-cvs
mailing list