Fix T58438: wrong display of brush angle rotation preview.
Differential Revision: https://developer.blender.org/D4017
This commit is contained in:
parent
b592e34559
commit
657806691b
Notes:
blender-bot
2023-02-14 08:38:11 +01:00
Referenced by issue #58438, In Sculpt mode brush angle of rotation is broken
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue