Blender Git Commit Log

Git Commits -> Revision d2bfb9a

Revision d2bfb9a by Joshua Leung (master)
December 7, 2008, 03:42 (GMT)
View2D: TimeCode display when displaying 'Seconds' not 'Frames'

When time grids are drawn in 'seconds' not 'frames' (use the TKEY to toggle this in Timeline for testing), times are now printed in a timecode format similar to SMPTE. It deviates from SMPTE in several respects, otherwise the timecodes will collide with the current grid spacings (Note: this will be subject to review in future).

* Hours will only be shown when they are needed. This shouldn't cause too many problems, since it is highly unlikely to get sequences, etc. that long.
* Frames are only shown when zoomed in close enough. When they are shown, display of minutes is generally ommitted unless significant.
* I've used the semicolon (;) character as the delimeter between frames and seconds. This seems to be the convention in Final Cut Pro, Vegas, and Quicktime...

---

Also in this commit:
* added UI_view2d_status_enforce() call to the end of UI_view2d_totRect_set(), so that the caller will not have to worry about doing so.

* swapped the order of V2D_GRID_(NO)CLAMP defines so to be more consistent with older versions of Blender. Default (0) is now no-clamping.

Commit Details:

Full Hash: d2bfb9ae1d38534a4b835d6c0946aeeb0f62994c
SVN Revision: 17733
Parent Commit: 5d8cfef
Lines Changed: +80, -13

3 Modified Paths:

/source/blender/editors/include/UI_view2d.h (+3, -2) (Diff)
/source/blender/editors/interface/view2d.c (+75, -9) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021