Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/space_nla.c
| Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | static SpaceLink *nla_create(const ScrArea *area, const Scene *scene) | ||||
| region->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL; | region->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL; | ||||
| /* ui buttons */ | /* ui buttons */ | ||||
| region = MEM_callocN(sizeof(ARegion), "buttons region for nla"); | region = MEM_callocN(sizeof(ARegion), "buttons region for nla"); | ||||
| BLI_addtail(&snla->regionbase, region); | BLI_addtail(&snla->regionbase, region); | ||||
| region->regiontype = RGN_TYPE_UI; | region->regiontype = RGN_TYPE_UI; | ||||
| region->alignment = RGN_ALIGN_RIGHT; | region->alignment = RGN_ALIGN_RIGHT; | ||||
| region->flag = RGN_FLAG_HIDDEN; | |||||
| /* main region */ | /* main region */ | ||||
| region = MEM_callocN(sizeof(ARegion), "main region for nla"); | region = MEM_callocN(sizeof(ARegion), "main region for nla"); | ||||
| BLI_addtail(&snla->regionbase, region); | BLI_addtail(&snla->regionbase, region); | ||||
| region->regiontype = RGN_TYPE_WINDOW; | region->regiontype = RGN_TYPE_WINDOW; | ||||
| region->v2d.tot.xmin = (float)(scene->r.sfra - 10); | region->v2d.tot.xmin = (float)(scene->r.sfra - 10); | ||||
| ▲ Show 20 Lines • Show All 543 Lines • Show Last 20 Lines | |||||