Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-12-07 06:42:25 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-07 06:42:25 +0300
commitd2bfb9ae1d38534a4b835d6c0946aeeb0f62994c (patch)
treeff64f3e4f8847994747375858a1c3d75c72bb640 /source/blender/editors/include/UI_view2d.h
parent5d8cfef713724b1be278e41fe499cff11e052723 (diff)
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.
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r--source/blender/editors/include/UI_view2d.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h
index c2c52c2d190..78409534d24 100644
--- a/source/blender/editors/include/UI_view2d.h
+++ b/source/blender/editors/include/UI_view2d.h
@@ -49,8 +49,9 @@
#define V2D_UNIT_SECONDSSEQ 5
/* clamping of grid values to whole numbers */
-#define V2D_GRID_CLAMP 0
-#define V2D_GRID_NOCLAMP 1
+#define V2D_GRID_NOCLAMP 0
+#define V2D_GRID_CLAMP 1
+
/* flags for grid-lines to draw */
#define V2D_HORIZONTAL_LINES (1<<0)