diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-02-06 20:43:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-02-06 20:43:32 +0300 |
commit | c9932c7da872bc5a4bd133f0ff06ce34ccffd308 (patch) | |
tree | 74f8e309f4dc42dbb3482fc9727e6945e2d959cb /source/blender/src/edittime.c | |
parent | a003d87a24e609bffe0b197ba258076a9358752c (diff) |
Mouse-click in the ipo/action/timeline/.. to change the frame
used to round down, and select the previous frame even when
the mouse was very close to the next one. Now it snaps to the
closest frame instead.
Diffstat (limited to 'source/blender/src/edittime.c')
-rw-r--r-- | source/blender/src/edittime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/edittime.c b/source/blender/src/edittime.c index 1520cb6c696..32b46bb7790 100644 --- a/source/blender/src/edittime.c +++ b/source/blender/src/edittime.c @@ -856,7 +856,7 @@ void winqreadtimespace(ScrArea *sa, void *spacedata, BWinEvent *evt) getmouseco_areawin(mval); areamouseco_to_ipoco(G.v2d, mval, &dx, &dy); - cfra = (int)dx; + cfra = (int)(dx+0.5f); if(cfra< MINFRAME) cfra= MINFRAME; if( cfra!=CFRA || first ) |