diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-21 14:56:42 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-21 14:56:42 +0300 |
commit | ad4d061091584dadcb2d2e8dd6ddf59af45b65f1 (patch) | |
tree | 8fc47cafe57a89daa844df29895993dd4d2b43ff /source/blender/editors/space_time | |
parent | 841f376a1c2b5dfef22e02696d5ad2ba053ecfbe (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_time')
-rw-r--r-- | source/blender/editors/space_time/time_header.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_time/time_header.c b/source/blender/editors/space_time/time_header.c index 48b29849ca3..d664cb28ee5 100644 --- a/source/blender/editors/space_time/time_header.c +++ b/source/blender/editors/space_time/time_header.c @@ -194,8 +194,8 @@ static void do_time_viewmenu(bContext *C, void *arg, int event) break; case 11: if(v2d) { - v2d->flag ^= V2D_VIEWSYNC_X; - UI_view2d_sync(CTX_wm_screen(C), v2d, V2D_LOCK_SET); + v2d->flag ^= V2D_VIEWSYNC_SCREEN_TIME; + UI_view2d_sync(CTX_wm_screen(C), CTX_wm_area(C), v2d, V2D_LOCK_SET); } break; case 12: /* only show keyframes from selected data */ @@ -240,7 +240,7 @@ static uiBlock *time_viewmenu(bContext *C, uiMenuBlockHandle *handle, void *arg_ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Center View|C", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 10, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "View All|Home", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 3, ""); - uiDefIconTextBut(block, BUTM, 1, (v2d->flag & V2D_VIEWSYNC_X)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT, + uiDefIconTextBut(block, BUTM, 1, (v2d->flag & V2D_VIEWSYNC_SCREEN_TIME)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT, "Lock Time to Other Windows|", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 11, ""); // if (!curarea->full) |