diff options
author | Chris Blackbourn <chrisbblend@gmail.com> | 2022-06-27 01:55:39 +0300 |
---|---|---|
committer | Chris Blackbourn <chrisbblend@gmail.com> | 2022-06-27 01:59:29 +0300 |
commit | 81c5b759d6ad86237f4d055ff8749bc14a7d369b (patch) | |
tree | e00495fe61b0aa8d7e08004dcf5c61b636388d36 /source/blender | |
parent | a646a4b47e4c50e2b7a8ef67041dfdceb62fdc2c (diff) |
Fix T99182: Hard code screen_scale for circle drawing in 3D
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c index 11309402220..2c886230f10 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c @@ -177,6 +177,7 @@ static void button2d_draw_intern(const bContext *C, GPU_matrix_push(); GPU_matrix_mul(matrix_final); + float screen_scale = 200.0f; if (is_3d) { RegionView3D *rv3d = CTX_wm_region_view3d(C); float matrix_align[4][4]; @@ -187,8 +188,9 @@ static void button2d_draw_intern(const bContext *C, transpose_m4(matrix_align); GPU_matrix_mul(matrix_align); } - - const float screen_scale = mat4_to_scale(matrix_final); + else { + screen_scale = mat4_to_scale(matrix_final); + } if (select) { BLI_assert(is_3d); |