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:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-11-07 19:32:32 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-11-07 19:32:32 +0400
commita3e5bd02bbf9883953ccc423726e5b5c0ee5aac0 (patch)
tree79bed7f08e89346663e8203580f07650021c4003 /source/blender/editors/space_clip/clip_editor.c
parent9b5652215abb91e5aa3ce40664fc0067567382b0 (diff)
Some small fixed for camera tracking:
- Lock to selection and center to selection will now work fine with undistorted rendering - Do not display pyramid for disabled tracks - Corrected fix for wrong correlation_min property name
Diffstat (limited to 'source/blender/editors/space_clip/clip_editor.c')
-rw-r--r--source/blender/editors/space_clip/clip_editor.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c
index 0de7fed1f1a..c5036145792 100644
--- a/source/blender/editors/space_clip/clip_editor.c
+++ b/source/blender/editors/space_clip/clip_editor.c
@@ -184,10 +184,18 @@ static int selected_boundbox(SpaceClip *sc, float min[2], float max[2])
if(marker) {
float pos[3];
- pos[0]= (marker->pos[0]+track->offset[0])*width;
- pos[1]= (marker->pos[1]+track->offset[1])*height;
+ pos[0]= marker->pos[0]+track->offset[0];
+ pos[1]= marker->pos[1]+track->offset[1];
pos[2]= 0.0f;
+ /* undistortion happens for normalized coords */
+ if(sc->user.render_flag&MCLIP_PROXY_RENDER_UNDISTORT)
+ /* undistortion happens for normalized coords */
+ ED_clip_point_undistorted_pos(sc, pos, pos);
+
+ pos[0]*= width;
+ pos[1]*= height;
+
mul_v3_m4v3(pos, sc->stabmat, pos);
DO_MINMAX2(pos, min, max);