Commit: fa63515c37587b1ec5fde2a13986cdbd099236bd
Author: raa
Date:   Sun Mar 26 12:16:04 2017 +0300
Branches: master
https://developer.blender.org/rBfa63515c37587b1ec5fde2a13986cdbd099236bd

Fix: Use "round" instead of "floor" in snapping UI to pixels

===================================================================

M       source/blender/editors/interface/interface.c

===================================================================

diff --git a/source/blender/editors/interface/interface.c 
b/source/blender/editors/interface/interface.c
index 9a717d30a8..7180e18ab9 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);
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to