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>2016-01-15 13:37:46 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-01-15 13:37:46 +0300
commit2414832bf1ef45f487777ae09d721bd1e7e8c840 (patch)
treeb59cf7277affbd6a3f80338a36da7e46e7293c60 /source/blender/editors/space_clip/tracking_ops.c
parent585574dc301904d0a3672b1956d50c8455a0e3e6 (diff)
Tracking: Make plane track sliding aware of closest mouse
Also made threshold aware of zoom, so now it's always 12px threshold regardless of how much you're zoomed in.
Diffstat (limited to 'source/blender/editors/space_clip/tracking_ops.c')
-rw-r--r--source/blender/editors/space_clip/tracking_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c
index af1a5404ee3..79f90a48c33 100644
--- a/source/blender/editors/space_clip/tracking_ops.c
+++ b/source/blender/editors/space_clip/tracking_ops.c
@@ -723,7 +723,7 @@ MovieTrackingTrack *tracking_marker_check_slide(bContext *C,
track = track->next;
}
- if (global_min_distance_squared < distance_clip_squared) {
+ if (global_min_distance_squared < distance_clip_squared / sc->zoom) {
if (area_r) {
*area_r = min_area;
}