diff options
author | raa <roaoao@gmail.com> | 2017-03-26 12:16:04 +0300 |
---|---|---|
committer | raa <roaoao@gmail.com> | 2017-03-26 12:16:04 +0300 |
commit | fa63515c37587b1ec5fde2a13986cdbd099236bd (patch) | |
tree | ac20b912dbebd4b56f22a5577b25e203fd7f1995 | |
parent | 001fce167a01c6b028fc80ad480c8eeea1a526cd (diff) |
Fix: Use "round" instead of "floor" in snapping UI to pixels
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 9a717d30a81..7180e18ab92 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -1337,7 +1337,7 @@ static void ui_but_to_pixelrect(rcti *rect, const ARegion *ar, uiBlock *block, u rctf rectf; ui_block_to_window_rctf(ar, block, &rectf, (but) ? &but->rect : &block->rect); - BLI_rcti_rctf_copy_floor(rect, &rectf); + BLI_rcti_rctf_copy(rect, &rectf); BLI_rcti_translate(rect, -ar->winrct.xmin, -ar->winrct.ymin); } |