Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'curve_tools/splines_sequence.py')
-rw-r--r--curve_tools/splines_sequence.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/curve_tools/splines_sequence.py b/curve_tools/splines_sequence.py
index 98766058..2588b5d3 100644
--- a/curve_tools/splines_sequence.py
+++ b/curve_tools/splines_sequence.py
@@ -3,7 +3,6 @@
import bpy
-import bgl
import blf
import gpu
from gpu_extras.batch import batch_for_shader
@@ -66,7 +65,7 @@ def draw(self, context, splines, sequence_color, font_thickness, font_size, matr
batch = batch_for_shader(shader, 'LINES', {"pos": points})
shader.bind()
- bgl.glLineWidth(font_thickness)
+ gpu.state.line_width_set(font_thickness)
shader.uniform_float("color", sequence_color)
batch.draw(shader)
i += font_size + font_size * 0.5