[Bf-blender-cvs] [f5daa58242a] master: Fix ruler angle arc displaying past endpoints

Campbell Barton noreply at git.blender.org
Thu Sep 6 06:33:22 CEST 2018


Commit: f5daa58242a1b42fea7a15039968499318978842
Author: Campbell Barton
Date:   Thu Sep 6 14:41:36 2018 +1000
Branches: master
https://developer.blender.org/rBf5daa58242a1b42fea7a15039968499318978842

Fix ruler angle arc displaying past endpoints

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

M	source/blender/editors/space_view3d/view3d_ruler.c

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

diff --git a/source/blender/editors/space_view3d/view3d_ruler.c b/source/blender/editors/space_view3d/view3d_ruler.c
index 012f71c10ba..f51b47032aa 100644
--- a/source/blender/editors/space_view3d/view3d_ruler.c
+++ b/source/blender/editors/space_view3d/view3d_ruler.c
@@ -485,7 +485,7 @@ static void ruler_info_draw_pixel(const struct bContext *C, ARegion *ar, void *a
 				float quat[4];
 				float axis[3];
 				float angle;
-				const float px_scale = (ED_view3d_pixel_size(rv3d, ruler_item->co[1]) *
+				const float px_scale = (ED_view3d_pixel_size_no_ui_scale(rv3d, ruler_item->co[1]) *
 				                        min_fff(arc_size,
 				                                len_v2v2(co_ss[0], co_ss[1]) / 2.0f,
 				                                len_v2v2(co_ss[2], co_ss[1]) / 2.0f));



More information about the Bf-blender-cvs mailing list