Skip to content
Snippets Groups Projects
Commit b9079cc4 authored by Damien Picard's avatar Damien Picard
Browse files

Sun Position: store and restore line width on North drawing

parent 085bc978
No related branches found
No related tags found
No related merge requests found
...@@ -72,8 +72,10 @@ else: ...@@ -72,8 +72,10 @@ else:
shader.uniform_float("u_Resolution", (bpy.context.region.width, shader.uniform_float("u_Resolution", (bpy.context.region.width,
bpy.context.region.height)) bpy.context.region.height))
shader.uniform_float("u_Color", color) shader.uniform_float("u_Color", color)
width = gpu.state.line_width_get()
gpu.state.line_width_set(2.0) gpu.state.line_width_set(2.0)
batch.draw(shader) batch.draw(shader)
gpu.state.line_width_set(width)
_north_handle = None _north_handle = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment