diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-21 16:43:07 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-21 17:03:42 +0300 |
commit | f7c2fc63954c0a423fd21973f5ad95b496168fb3 (patch) | |
tree | 3bb75056d9d2f8586950114f30e5142df715069f | |
parent | ecdb17a4018849c0b7dd345672b2c64e7b19040e (diff) |
Curve Assign Shape Keys: replace deprecated bgl module
Part of T80730
-rw-r--r-- | curve_assign_shapekey.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/curve_assign_shapekey.py b/curve_assign_shapekey.py index a87e89b0..75e42b1a 100644 --- a/curve_assign_shapekey.py +++ b/curve_assign_shapekey.py @@ -8,7 +8,7 @@ # # https://github.com/Shriinivas/assignshapekey/blob/master/LICENSE -import bpy, bmesh, bgl, gpu +import bpy, bmesh, gpu from gpu_extras.batch import batch_for_shader from bpy.props import BoolProperty, EnumProperty, StringProperty from collections import OrderedDict @@ -21,8 +21,8 @@ from bpy.types import Panel, Operator, AddonPreferences bl_info = { "name": "Assign Shape Keys", "author": "Shrinivas Kulkarni", - "version": (1, 0, 1), - "blender": (2, 80, 0), + "version": (1, 0, 2), + "blender": (3, 0, 0), "location": "View 3D > Sidebar > Edit Tab", "description": "Assigns one or more Bezier curves as shape keys to another Bezier curve", "doc_url": "{BLENDER_MANUAL_URL}/addons/add_curve/assign_shape_keys.html", @@ -835,7 +835,7 @@ class MarkerController: context.area.tag_redraw() def drawHandler(self): - bgl.glPointSize(MarkerController.defPointSize) + gpu.state.point_size_set(MarkerController.defPointSize) self.batch.draw(self.shader) def removeMarkers(self, context): |