Fix too big grid plane for Add Object tool on Retina displays
The grid plane was drawn too big on retina displays compared to other screens, because the factor was multiplied by the native pixel-size, which is 2 for Retina displays.
This commit is contained in:
parent
6ebe0b8cf0
commit
47892d6695
|
@ -2061,7 +2061,7 @@ static void cursor_plane_draw(bContext *C, int x, int y, void *customdata)
|
|||
GPU_matrix_projection_set(rv3d->winmat);
|
||||
GPU_matrix_set(rv3d->viewmat);
|
||||
|
||||
const float scale_mod = U.gizmo_size * 2 * U.dpi_fac;
|
||||
const float scale_mod = U.gizmo_size * 2 * U.dpi_fac / U.pixelsize;
|
||||
|
||||
float final_scale = (scale_mod * pixel_size);
|
||||
|
||||
|
|
Loading…
Reference in New Issue