diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-28 18:19:44 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-28 18:29:39 +0300 |
commit | c1cdc33579fe55af354d702abcd077ddd31d8d9e (patch) | |
tree | 4f30f6f5d6c8860bb66eaef22ea40496294e2673 /precision_drawing_tools | |
parent | ce8c5f8d1b180051d540fb162872300bd4598e31 (diff) |
Precision Drawing Tools: replace deprecated bgl module
Part of T80730
Diffstat (limited to 'precision_drawing_tools')
-rw-r--r-- | precision_drawing_tools/__init__.py | 2 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_functions.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/precision_drawing_tools/__init__.py b/precision_drawing_tools/__init__.py index 6cb9ab52..6fdb72f2 100644 --- a/precision_drawing_tools/__init__.py +++ b/precision_drawing_tools/__init__.py @@ -12,7 +12,7 @@ bl_info = { "name": "Precision Drawing Tools (PDT)", "author": "Alan Odom (Clockmender), Rune Morling (ermo)", - "version": (1, 5, 2), + "version": (1, 5, 3), "blender": (3, 0, 0), "location": "View3D > UI > PDT", "description": "Precision Drawing Tools for Accurate Modelling", diff --git a/precision_drawing_tools/pdt_functions.py b/precision_drawing_tools/pdt_functions.py index 66bf1de2..9352b66f 100644 --- a/precision_drawing_tools/pdt_functions.py +++ b/precision_drawing_tools/pdt_functions.py @@ -8,7 +8,6 @@ import bpy import bmesh -import bgl import gpu import numpy as np from mathutils import Vector, Quaternion @@ -584,7 +583,7 @@ def draw_3d(coords, gtype, rgba, context): try: if coords is not None: - bgl.glEnable(bgl.GL_BLEND) + gpu.state.blend_set('ALPHA') SHADER.bind() SHADER.uniform_float("color", rgba) batch.draw(SHADER) |