[Bf-extensions-cvs] [f7c2fc63] master: Curve Assign Shape Keys: replace deprecated bgl module

Germano Cavalcante noreply at git.blender.org
Thu Jul 21 19:04:36 CEST 2022


Commit: f7c2fc63954c0a423fd21973f5ad95b496168fb3
Author: Germano Cavalcante
Date:   Thu Jul 21 10:43:07 2022 -0300
Branches: master
https://developer.blender.org/rBAf7c2fc63954c0a423fd21973f5ad95b496168fb3

Curve Assign Shape Keys: replace deprecated bgl module

Part of T80730

===================================================================

M	curve_assign_shapekey.py

===================================================================

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):



More information about the Bf-extensions-cvs mailing list