From 31357913950968c81b704f0169a91ee293984bf8 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 17 Apr 2020 16:51:00 +0200 Subject: Tracking: Specify image image for (un)distortion model Allows to support distortion models which needs to know actual image dimensions to apply or inverse camera intrinsics. --- source/blender/blenkernel/intern/constraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/constraint.c') diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 099fdacf401..bf100b2e949 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -4694,7 +4694,7 @@ static void followtrack_evaluate(bConstraint *con, bConstraintOb *cob, ListBase pos[0] *= width; pos[1] *= height; - BKE_tracking_undistort_v2(tracking, pos, pos); + BKE_tracking_undistort_v2(tracking, width, height, pos, pos); /* Normalize pixel coordinates back. */ pos[0] /= width; -- cgit v1.2.3