diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-05-11 12:45:20 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-05-11 12:45:20 +0300 |
commit | 672a0af081cf80b5f8d4ed3c5ea79be14480f3e1 (patch) | |
tree | 00d64b2ab003d6d539e5f8adced37ce5fba52232 /source/blender/blenkernel/intern/constraint.c | |
parent | 38732c74fc68b4ed7e1d1095c24c80b1bff603bc (diff) |
Fix T76438: Wrong calculation of depth for Follow Track constraint
Need to transform direction as such, without adding translation component
of the camera matrix.
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 7fe438c8c45..679fe703b13 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -4821,7 +4821,7 @@ static float followtrack_distance_from_viewplane_get(FollowTrackContext *context /* Direction of camera's local Z axis in the world space. */ float camera_axis[3]; - mul_v3_m4v3(camera_axis, camera_matrix, z_axis); + mul_v3_mat3_m4v3(camera_axis, camera_matrix, z_axis); /* Distance to projection plane. */ float vec[3]; |