Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-01-19 20:40:40 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-01-19 20:40:40 +0300
commit02a63115d25fd48b67ae3791dfd7e1d448eb5384 (patch)
tree8d15b46fe7983d5696444f81d7f4a6c76d7180e9 /source/blender/editors/animation
parent7d114e5d870b8d28d2051163bedc95ed80253b8f (diff)
parentc371d699cabcc4ee7690b0f74968354064c7dc7d (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/time_scrub_ui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/animation/time_scrub_ui.c b/source/blender/editors/animation/time_scrub_ui.c
index acbac93b654..4e0542dc1e4 100644
--- a/source/blender/editors/animation/time_scrub_ui.c
+++ b/source/blender/editors/animation/time_scrub_ui.c
@@ -22,6 +22,7 @@
*/
#include "BKE_context.h"
+#include "BKE_scene.h"
#include "GPU_immediate.h"
#include "GPU_matrix.h"
@@ -91,7 +92,6 @@ static void draw_current_frame(const Scene *scene,
const View2D *v2d,
const rcti *scrub_region_rect,
int current_frame,
- float sub_frame,
bool draw_line)
{
const uiFontStyle *fstyle = UI_FSTYLE_WIDGET;
@@ -109,7 +109,7 @@ static void draw_current_frame(const Scene *scene,
if (draw_line) {
/* Draw vertical line to from the bottom of the current frame box to the bottom of the screen.
*/
- const float subframe_x = UI_view2d_view_to_region_x(v2d, current_frame + sub_frame);
+ const float subframe_x = UI_view2d_view_to_region_x(v2d, BKE_scene_frame_get(scene));
GPUVertFormat *format = immVertexFormat();
uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
@@ -168,7 +168,6 @@ void ED_time_scrub_draw_current_frame(const ARegion *region,
v2d,
&scrub_region_rect,
scene->r.cfra,
- scene->r.subframe,
draw_line);
GPU_matrix_pop_projection();
}