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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-06 20:43:32 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-06 20:43:32 +0300
commitc9932c7da872bc5a4bd133f0ff06ce34ccffd308 (patch)
tree74f8e309f4dc42dbb3482fc9727e6945e2d959cb /source/blender/src/editaction.c
parenta003d87a24e609bffe0b197ba258076a9358752c (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.c2
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) {