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-21 14:56:42 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-21 14:56:42 +0300
commitad4d061091584dadcb2d2e8dd6ddf59af45b65f1 (patch)
tree8fc47cafe57a89daa844df29895993dd4d2b43ff /source/blender/editors/space_action/space_action.c
parent841f376a1c2b5dfef22e02696d5ad2ba053ecfbe (diff)
View2D - Vertical (within area) syncing for channel lists to stay in sync with the relevant keyframes...
I still need to work out how to get this to work correctly as soon as an Action Editor instance is created.
Diffstat (limited to 'source/blender/editors/space_action/space_action.c')
-rw-r--r--source/blender/editors/space_action/space_action.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 105d9b3806c..93e5ee0e16a 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -89,7 +89,7 @@ static SpaceLink *action_new(void)
/* only need to set scroll settings, as this will use 'listview' v2d configuration */
ar->v2d.scroll = V2D_SCROLL_BOTTOM;
- ar->v2d.flag = V2D_VIEWSYNC_Y;
+ ar->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL;
/* main area */
ar= MEM_callocN(sizeof(ARegion), "main area for action");
@@ -119,6 +119,7 @@ static SpaceLink *action_new(void)
ar->v2d.scroll |= (V2D_SCROLL_RIGHT);
ar->v2d.keepzoom= V2D_LOCKZOOM_Y;
ar->v2d.align= V2D_ALIGN_NO_POS_Y;
+ ar->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL;
return (SpaceLink *)saction;
}
@@ -245,7 +246,11 @@ static void action_channel_area_draw(const bContext *C, ARegion *ar)
UI_view2d_view_ortho(C, v2d);
/* data... */
-
+ // temp... line for testing
+ glColor3f(0, 0, 0);
+ glLineWidth(2.0f);
+ sdrawline(10, 0, 190, 0);
+ glLineWidth(1.0f);
/* reset view matrix */
UI_view2d_view_restore(C);