Fix T73793 Walk navigation crosshair gets hidden behind objects
This was reintroduced by the wide line emulation workaround.
This commit is contained in:
parent
8e060b44da
commit
e58285dc1d
Notes:
blender-bot
2023-02-14 05:59:31 +01:00
Referenced by issue #73793, Walk navigation crosshair gets hidden behind objects
|
@ -337,7 +337,7 @@ static void drawWalkPixel(const struct bContext *UNUSED(C), ARegion *region, voi
|
|||
|
||||
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
|
||||
|
||||
immUniformThemeColor3(TH_VIEW_OVERLAY);
|
||||
immUniformThemeColorAlpha(TH_VIEW_OVERLAY, 1.0f);
|
||||
|
||||
immBegin(GPU_PRIM_LINES, 8);
|
||||
|
||||
|
|
|
@ -167,7 +167,8 @@ void GPU_depth_range(float near, float far)
|
|||
|
||||
void GPU_line_width(float width)
|
||||
{
|
||||
SET_MUTABLE_STATE(line_width, width * PIXELSIZE);
|
||||
width = max_ff(1.0f, width * PIXELSIZE);
|
||||
SET_MUTABLE_STATE(line_width, width);
|
||||
}
|
||||
|
||||
void GPU_point_size(float size)
|
||||
|
|
Loading…
Reference in New Issue