Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/space_action.c
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | static SpaceLink *action_new(const ScrArea *sa, const Scene *scene) | ||||
| ARegion *ar; | ARegion *ar; | ||||
| saction = MEM_callocN(sizeof(SpaceAction), "initaction"); | saction = MEM_callocN(sizeof(SpaceAction), "initaction"); | ||||
| saction->spacetype = SPACE_ACTION; | saction->spacetype = SPACE_ACTION; | ||||
| saction->autosnap = SACTSNAP_FRAME; | saction->autosnap = SACTSNAP_FRAME; | ||||
| saction->mode = SACTCONT_DOPESHEET; | saction->mode = SACTCONT_DOPESHEET; | ||||
| saction->mode_prev = SACTCONT_DOPESHEET; | saction->mode_prev = SACTCONT_DOPESHEET; | ||||
| saction->flag = SACTION_SHOW_INTERPOLATION | SACTION_SHOW_MARKER_LINES; | saction->flag = SACTION_SHOW_INTERPOLATION | SACTION_SHOW_MARKERS; | ||||
| saction->ads.filterflag |= ADS_FILTER_SUMMARY; | saction->ads.filterflag |= ADS_FILTER_SUMMARY; | ||||
| /* enable all cache display */ | /* enable all cache display */ | ||||
| saction->cache_display |= TIME_CACHE_DISPLAY; | saction->cache_display |= TIME_CACHE_DISPLAY; | ||||
| saction->cache_display |= (TIME_CACHE_SOFTBODY | TIME_CACHE_PARTICLES); | saction->cache_display |= (TIME_CACHE_SOFTBODY | TIME_CACHE_PARTICLES); | ||||
| saction->cache_display |= (TIME_CACHE_CLOTH | TIME_CACHE_SMOKE | TIME_CACHE_DYNAMICPAINT); | saction->cache_display |= (TIME_CACHE_CLOTH | TIME_CACHE_SMOKE | TIME_CACHE_DYNAMICPAINT); | ||||
| saction->cache_display |= TIME_CACHE_RIGIDBODY; | saction->cache_display |= TIME_CACHE_RIGIDBODY; | ||||
| ▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | static void action_main_region_draw(const bContext *C, ARegion *ar) | ||||
| } | } | ||||
| ANIM_draw_cfra(C, v2d, cfra_flag); | ANIM_draw_cfra(C, v2d, cfra_flag); | ||||
| /* markers */ | /* markers */ | ||||
| UI_view2d_view_orthoSpecial(ar, v2d, 1); | UI_view2d_view_orthoSpecial(ar, v2d, 1); | ||||
| marker_flag = ((ac.markers && (ac.markers != &ac.scene->markers)) ? DRAW_MARKERS_LOCAL : 0) | | marker_flag = ((ac.markers && (ac.markers != &ac.scene->markers)) ? DRAW_MARKERS_LOCAL : 0) | | ||||
| DRAW_MARKERS_MARGIN; | DRAW_MARKERS_MARGIN; | ||||
| if (saction->flag & SACTION_SHOW_MARKER_LINES) { | |||||
| marker_flag |= DRAW_MARKERS_LINES; | if (saction->flag & SACTION_SHOW_MARKERS) { | ||||
| } | |||||
| ED_markers_draw(C, marker_flag); | ED_markers_draw(C, marker_flag); | ||||
| } | |||||
| /* caches */ | /* caches */ | ||||
| if (saction->mode == SACTCONT_TIMELINE) { | if (saction->mode == SACTCONT_TIMELINE) { | ||||
| timeline_draw_cache(saction, obact, scene); | timeline_draw_cache(saction, obact, scene); | ||||
| } | } | ||||
| /* preview range */ | /* preview range */ | ||||
| UI_view2d_view_ortho(v2d); | UI_view2d_view_ortho(v2d); | ||||
| ▲ Show 20 Lines • Show All 684 Lines • Show Last 20 Lines | |||||