Sun Position: store and restore line width on North drawing

This commit is contained in:
Damien Picard 2023-01-07 23:01:25 +01:00
parent 085bc978b7
commit b9079cc426
1 changed files with 2 additions and 0 deletions

View File

@ -72,8 +72,10 @@ else:
shader.uniform_float("u_Resolution", (bpy.context.region.width,
bpy.context.region.height))
shader.uniform_float("u_Color", color)
width = gpu.state.line_width_get()
gpu.state.line_width_set(2.0)
batch.draw(shader)
gpu.state.line_width_set(width)
_north_handle = None