Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/action_draw.c
| Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | uint pos_id = GPU_vertformat_attr_add( | ||||
| immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); | ||||
| immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); | immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); | ||||
| GPU_blend(true); | GPU_blend(true); | ||||
| /* Iterate over pointcaches on the active object, and draw each one's range. */ | /* Iterate over pointcaches on the active object, and draw each one's range. */ | ||||
| float y_offset = 0.0f; | float y_offset = 0.0f; | ||||
| const float cache_draw_height = 4.0f * UI_DPI_FAC * U.pixelsize; | const float cache_draw_height = 4.0f * UI_DPI_FAC * U.pixelsize; | ||||
| for (PTCacheID *pid = pidlist.first; pid; pid = pid->next) { | LISTBASE_FOREACH (PTCacheID *, pid, &pidlist) { | ||||
| if (timeline_cache_is_hidden_by_setting(saction, pid)) { | if (timeline_cache_is_hidden_by_setting(saction, pid)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (pid->cache->cached_frames == NULL) { | if (pid->cache->cached_frames == NULL) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| Show All 12 Lines | |||||