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:
authorCampbell Barton <ideasman42@gmail.com>2008-01-21 03:41:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-01-21 03:41:29 +0300
commitebb15ff9d57402227d19a0c22ea18fb9eeaf6f5e (patch)
tree3a4cc46b258128cac0ea7259bc0827f7e78801c2 /source/blender/src/editipo.c
parentab1482dce9e9b837f52ca446f07a02d8ae2109b9 (diff)
selecting keyframes in the ipo view didn't work well when zoomed in far, use pixel width rather then frame with when giving deselected frames a bias
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r--source/blender/src/editipo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c
index 07b97ccf75f..612d9f59b92 100644
--- a/source/blender/src/editipo.c
+++ b/source/blender/src/editipo.c
@@ -1476,6 +1476,9 @@ void mouse_select_ipo(void)
}
if(G.sipo->showkey) {
+ float pixelwidth;
+ pixelwidth= (G.v2d->cur.xmax-G.v2d->cur.xmin)/(G.v2d->mask.xmax-G.v2d->mask.xmin); /* could make a generic function */
+
getmouseco_areawin(mval);
areamouseco_to_ipoco(G.v2d, mval, &x, &y);
@@ -1484,7 +1487,7 @@ void mouse_select_ipo(void)
ik= G.sipo->ipokey.first;
while(ik) {
dist= (float)(fabs(ik->val-x));
- if(ik->flag & 1) dist+= 1.0;
+ if(ik->flag & SELECT) dist+= pixelwidth;
if(dist < mindist) {
actik= ik;
mindist= dist;