diff options
author | Damien Picard <dam.pic@free.fr> | 2021-05-26 01:04:48 +0300 |
---|---|---|
committer | Damien Picard <dam.pic@free.fr> | 2021-05-26 01:38:06 +0300 |
commit | af94627460560da0f5fd03a7bb8897228d0b4c56 (patch) | |
tree | 514d4996ca4dfc477f03befc45896094072be779 /sun_position/north.py | |
parent | be0c6b3d9ed1430218e289f1813b8d0a5be93175 (diff) |
Sun position: replace deprecated bgl module by gpu T80730
Diffstat (limited to 'sun_position/north.py')
-rw-r--r-- | sun_position/north.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sun_position/north.py b/sun_position/north.py index 0dbe7e4e..0c0a41af 100644 --- a/sun_position/north.py +++ b/sun_position/north.py @@ -17,7 +17,6 @@ # ##### END GPL LICENSE BLOCK ##### import bpy -import bgl import math import gpu from gpu_extras.batch import batch_for_shader @@ -94,10 +93,9 @@ else: shader.uniform_float("u_ViewProjectionMatrix", matrix) shader.uniform_float("u_Resolution", (bpy.context.region.width, bpy.context.region.height)) shader.uniform_float("u_Color", color) - bgl.glLineWidth(2.0) + gpu.state.line_width_set(2.0) batch.draw(shader) - _handle = None |