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:
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r--source/blender/src/editipo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c
index c8e1ae4a3cd..93ddb57ea66 100644
--- a/source/blender/src/editipo.c
+++ b/source/blender/src/editipo.c
@@ -1477,10 +1477,10 @@ 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);
+ view2d_getscale(G.v2d, &pixelwidth, NULL);
+ getmouseco_areawin(mval);
areamouseco_to_ipoco(G.v2d, mval, &x, &y);
actik= 0;
mindist= 1000.0;