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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/curve_tools/splines_sequence.py b/curve_tools/splines_sequence.py
index 98766058..89b9624c 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
@@ -215,6 +214,7 @@ class RearrangeSpline(bpy.types.Operator):
bl_idname = "curvetools.rearrange_spline"
bl_label = "Rearrange Spline"
bl_description = "Rearrange Spline"
+ bl_options = {'UNDO'}
Types = [('NEXT', "Next", "next"),
('PREV', "Prev", "prev")]