Blender Git Loki

Git Commits -> Revision e1fdf7f

Revision e1fdf7f by Joshua Leung (master)
January 30, 2010, 04:43 (GMT)
View2D/TimeCode Drawing:

This commit introduces a few cleanups and tweaks to the way that timecodes (i.e. the timing indications used instead of frame numbers) get displayed.

1. Custom Spacing of TimeCodes/Gridlines
Made the minimum number of pixels between gridlines/timecode indications a user-preference, instead of being a hardcoded constant. This allows to set the spacing tighter/looser than the defaults, and is also used for the other changes.

2. Default timecode display style, (now named 'minimal') uses '+' as the delimeter for the sub-second frames. This hopefully makes it a bit clearer what those values represent, as opposed to the '!', which can sometimes look too much like a colon.

3. Added various timecode display styles as user-preference. - These include always displaying full SMPTE, to showing milliseconds instead of frams for sub-second times, and also an option to just show the times as seconds only.
- When changing the timecode style, the spacing setting is automatically modified so that the timecodes are spaced far apart enough so that they won't clash (under most circumstances). This automatic modification is only done if the spacing is too tight for the style being set.

4. Unified the code for generating timecode strings between the View2D scrollbar drawing and the current frame indicator drawing.

Commit Details:

Full Hash: e1fdf7fc58573de84fba5514bcdef1749bb61d16
SVN Revision: 26415
Parent Commit: d86a9da
Lines Changed: +222, -141

8 Modified Paths:

/release/scripts/ui/space_userpref.py (+8, -1) (Diff)
/source/blender/editors/animation/anim_draw.c (+119, -43) (Diff)
/source/blender/editors/include/ED_anim_api.h (+3, -0) (Diff)
/source/blender/editors/interface/resources.c (+3, -0) (Diff)
/source/blender/editors/interface/view2d.c (+6, -74) (Diff)
/source/blender/editors/space_graph/graph_draw.c (+2, -7) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+18, -1) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+63, -15) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021