diff options
author | Pablo Dobarro <pablodp606> | 2019-01-23 22:25:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-23 22:25:45 +0300 |
commit | 657806691b99f1e6f0f297f273e5ff9c1085564c (patch) | |
tree | 2bcbdd9e4953fb95e8f99ee3f9523d2c29286290 /source | |
parent | b592e34559da82f86339e97b25ceac9f844719ab (diff) |
Fix T58438: wrong display of brush angle rotation preview.
Differential Revision: https://developer.blender.org/D4017
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 0f2e6a18af4..8351a62b760 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2192,14 +2192,14 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void GPU_matrix_push(); /* draw original angle line */ - GPU_matrix_rotate_2d(RAD2DEGF(rc->initial_value)); + GPU_matrix_rotate_3f(RAD2DEGF(rc->initial_value), 0.0f, 0.0f, 1.0f); immBegin(GPU_PRIM_LINES, 2); immVertex2f(pos, (float)WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, 0.0f); immVertex2f(pos, (float)WM_RADIAL_CONTROL_DISPLAY_SIZE, 0.0f); immEnd(); /* draw new angle line */ - GPU_matrix_rotate_2d(RAD2DEGF(rc->current_value - rc->initial_value)); + GPU_matrix_rotate_3f(RAD2DEGF(rc->current_value - rc->initial_value), 0.0f, 0.0f, 1.0f); immBegin(GPU_PRIM_LINES, 2); immVertex2f(pos, (float)WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, 0.0f); immVertex2f(pos, (float)WM_RADIAL_CONTROL_DISPLAY_SIZE, 0.0f); |