[Bf-blender-cvs] [a64d2815288] temp-ui-tweaks: UI: Do not rotate vertical scale indicators

Pablo Vazquez noreply at git.blender.org
Tue Aug 24 03:07:06 CEST 2021


Commit: a64d2815288082cfe65196dd3b58de282a03b011
Author: Pablo Vazquez
Date:   Tue Aug 24 02:03:07 2021 +0200
Branches: temp-ui-tweaks
https://developer.blender.org/rBa64d2815288082cfe65196dd3b58de282a03b011

UI: Do not rotate vertical scale indicators

In animation editors with vertical scale indicators, such as Graph Editor
or Drivers, display the values aligned to the view.

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

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

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

diff --git a/source/blender/editors/interface/view2d_draw.c b/source/blender/editors/interface/view2d_draw.c
index 95427e49495..cfd207dd58e 100644
--- a/source/blender/editors/interface/view2d_draw.c
+++ b/source/blender/editors/interface/view2d_draw.c
@@ -394,9 +394,6 @@ static void draw_vertical_scale_indicators(const ARegion *region,
   const int font_id = BLF_default();
   UI_FontThemeColor(font_id, colorid);
 
-  BLF_enable(font_id, BLF_ROTATION);
-  BLF_rotation(font_id, M_PI_2);
-
   BLF_batch_draw_begin();
 
   const float xpos = rect->xmax - 2.0f * UI_DPI_FAC;
@@ -416,7 +413,6 @@ static void draw_vertical_scale_indicators(const ARegion *region,
   }
 
   BLF_batch_draw_end();
-  BLF_disable(font_id, BLF_ROTATION);
 
   GPU_matrix_pop_projection();
 }



More information about the Bf-blender-cvs mailing list