diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-11-12 13:06:25 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-11-12 13:06:25 +0300 |
commit | dfaddba86c644ede549e09ca6f9f7d5770efbebf (patch) | |
tree | 28661bcacda7d60b4c9a8025a64fe9a271592222 /source/blender/windowmanager/intern | |
parent | b089332a4d3ba915eac27f6fea13b26740404bd1 (diff) |
correct offset for scaled widgets during interaction
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_generic_widgets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_generic_widgets.c b/source/blender/windowmanager/intern/wm_generic_widgets.c index 19b2e2d3f3e..e949c8a7f97 100644 --- a/source/blender/windowmanager/intern/wm_generic_widgets.c +++ b/source/blender/windowmanager/intern/wm_generic_widgets.c @@ -278,7 +278,7 @@ static int widget_arrow_handler(struct bContext *C, const struct wmEvent *event, fac = len_v3(orig_origin) / len_v3(offset); if (dot_v3v3(offset, orig_origin) < 0.0f) facdir = -1.0; - fac *= facdir; + fac *= facdir / widget->scale; mul_v3_v3fl(orig_origin, offset, fac); add_v3_v3(orig_origin, data->orig_origin); |