From ec89df61da28a83eb1c00e3e27d69fa1421230f4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 17 Apr 2017 16:59:54 +0200 Subject: pose-widget: interpolate next in world coordinate space The next value was chosen in view space. --- pose-widget/pose-widget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pose-widget') diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index 8f4c4a1b..a7da830a 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -282,8 +282,6 @@ void pose_transform::project_quad_texture() return; } - const vec3 next = rotation * vec3(1, 1, 0); - for (int y = 1; y < sy; y++) for (int x = 1; x < sx; x++) { @@ -299,8 +297,8 @@ void pose_transform::project_quad_texture() + uv.x() * origs[i][2].y() + uv.y() * origs[i][1].y(); - const int px_ = fx + next.x(); - const int py_ = fy + next.y(); + const int px_ = fx + 1; + const int py_ = fy + 1; const int px = fx; const int py = fy; const float ax_ = fx - px; -- cgit v1.2.3