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-04 05:01:42 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-04 05:01:42 +0300
commitefe8ad86e30b23e4611292b219ebdea0037b5611 (patch)
tree0063b3be2641f9a7e62077ab55e94d846e59152f /source/blender/editors/include/UI_view2d.h
parent2a1d37ddc2d19041105a7813d0873e0f197717a1 (diff)
View2D: Units on Scrollers (XAxis only)
Added back units on scrollbars for anim editors (i.e. Timeline). Vertical scrollbars have yet to be done, but there's no way to test yet. Using markers and current frame indicator (and value) as guides, it is clear that there is still some inaccuracy with the drawing of the grid or the frames/markers are drawn wrong! Will investigate further.
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r--source/blender/editors/include/UI_view2d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h
index 86f47efd284..b627c8061ba 100644
--- a/source/blender/editors/include/UI_view2d.h
+++ b/source/blender/editors/include/UI_view2d.h
@@ -45,6 +45,8 @@
/* grid-units (for drawing values) */
#define V2D_UNIT_VALUES 2
#define V2D_UNIT_DEGREES 3
+#define V2D_UNIT_TIME 4
+#define V2D_UNIT_SECONDSSEQ 5
/* clamping of grid values to whole numbers */
#define V2D_GRID_CLAMP 0