[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13322] trunk/blender/source/blender/src/ editipo.c: 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
Campbell Barton
ideasman42 at gmail.com
Mon Jan 21 01:41:29 CET 2008
Revision: 13322
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13322
Author: campbellbarton
Date: 2008-01-21 01:41:29 +0100 (Mon, 21 Jan 2008)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/blender/source/blender/src/editipo.c
Modified: trunk/blender/source/blender/src/editipo.c
===================================================================
--- trunk/blender/source/blender/src/editipo.c 2008-01-21 00:41:29 UTC (rev 13321)
+++ trunk/blender/source/blender/src/editipo.c 2008-01-21 00:41:29 UTC (rev 13322)
@@ -1476,6 +1476,9 @@
}
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 @@
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;
More information about the Bf-blender-cvs
mailing list