Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/space_action.c
| Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | static SpaceLink *action_new(const ScrArea *sa, const Scene *scene) | ||||
| ar->v2d.min[0] = 0.0f; | ar->v2d.min[0] = 0.0f; | ||||
| ar->v2d.min[1] = 0.0f; | ar->v2d.min[1] = 0.0f; | ||||
| ar->v2d.max[0] = MAXFRAMEF; | ar->v2d.max[0] = MAXFRAMEF; | ||||
| ar->v2d.max[1] = FLT_MAX; | ar->v2d.max[1] = FLT_MAX; | ||||
| ar->v2d.minzoom = 0.01f; | ar->v2d.minzoom = 0.01f; | ||||
| ar->v2d.maxzoom = 50; | ar->v2d.maxzoom = 50; | ||||
| ar->v2d.scroll = (V2D_SCROLL_BOTTOM | V2D_SCROLL_SCALE_HORIZONTAL); | ar->v2d.scroll = (V2D_SCROLL_BOTTOM | V2D_SCROLL_HORIZONTAL_HANDLES); | ||||
| ar->v2d.scroll |= (V2D_SCROLL_RIGHT); | ar->v2d.scroll |= (V2D_SCROLL_RIGHT); | ||||
| ar->v2d.keepzoom = V2D_LOCKZOOM_Y; | ar->v2d.keepzoom = V2D_LOCKZOOM_Y; | ||||
| ar->v2d.keepofs = V2D_KEEPOFS_Y; | ar->v2d.keepofs = V2D_KEEPOFS_Y; | ||||
| ar->v2d.align = V2D_ALIGN_NO_POS_Y; | ar->v2d.align = V2D_ALIGN_NO_POS_Y; | ||||
| ar->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL; | ar->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL; | ||||
| return (SpaceLink *)saction; | return (SpaceLink *)saction; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 775 Lines • Show Last 20 Lines | |||||