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/editaction.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/editaction.c')
-rw-r--r-- | source/blender/src/editaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c index d93ee44a42d..c4c1b079dfe 100644 --- a/source/blender/src/editaction.c +++ b/source/blender/src/editaction.c @@ -4272,7 +4272,7 @@ void winqreadactionspace(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 < 1) cfra= 1; if (cfra != CFRA) { |