Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_time/space_time.c
| Show First 20 Lines • Show All 340 Lines • ▼ Show 20 Lines | if (max_len > 0) { | ||||
| immEnd(); | immEnd(); | ||||
| immUnbindProgram(); | immUnbindProgram(); | ||||
| } | } | ||||
| /* free temp stuff */ | /* free temp stuff */ | ||||
| BLI_dlrbTree_free(&keys); | BLI_dlrbTree_free(&keys); | ||||
| } | } | ||||
| static void time_draw_caches_keyframes(Main *bmain, SceneLayer *sl, View2D *v2d, bool onlysel, const unsigned char color[3]) | static void time_draw_caches_keyframes(Main *bmain, ViewLayer *sl, View2D *v2d, bool onlysel, const unsigned char color[3]) | ||||
| { | { | ||||
| CacheFile *cache_file; | CacheFile *cache_file; | ||||
| for (cache_file = bmain->cachefiles.first; | for (cache_file = bmain->cachefiles.first; | ||||
| cache_file; | cache_file; | ||||
| cache_file = cache_file->id.next) | cache_file = cache_file->id.next) | ||||
| { | { | ||||
| cache_file->draw_flag &= ~CACHEFILE_KEYFRAME_DRAWN; | cache_file->draw_flag &= ~CACHEFILE_KEYFRAME_DRAWN; | ||||
| Show All 37 Lines | for (Base *base = sl->object_bases.first; base; base = base->next) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* draw keyframe lines for timeline */ | /* draw keyframe lines for timeline */ | ||||
| static void time_draw_keyframes(const bContext *C, ARegion *ar) | static void time_draw_keyframes(const bContext *C, ARegion *ar) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | ViewLayer *sl = CTX_data_view_layer(C); | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| View2D *v2d = &ar->v2d; | View2D *v2d = &ar->v2d; | ||||
| bool onlysel = ((scene->flag & SCE_KEYS_NO_SELONLY) == 0); | bool onlysel = ((scene->flag & SCE_KEYS_NO_SELONLY) == 0); | ||||
| unsigned char color[3]; | unsigned char color[3]; | ||||
| /* set this for all keyframe lines once and for all */ | /* set this for all keyframe lines once and for all */ | ||||
| glLineWidth(1.0); | glLineWidth(1.0); | ||||
| ▲ Show 20 Lines • Show All 405 Lines • Show Last 20 Lines | |||||