diff options
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 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_tangent.py | 4 |
3 files changed, 4 insertions, 5 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) diff --git a/precision_drawing_tools/pdt_tangent.py b/precision_drawing_tools/pdt_tangent.py index 88abd2d0..f9ccda51 100644 --- a/precision_drawing_tools/pdt_tangent.py +++ b/precision_drawing_tools/pdt_tangent.py @@ -199,8 +199,8 @@ def tangent_setup(context, pg, plane, obj_data, centre_0, centre_1, centre_2, ra obj_data: All the data of the chosen object centre_0: Centre coordinates of the first arc centre_1: Centre coordinates of the second arc - centre_2: Coordinates fo the point - radius_0: Radius if the first Arc + centre_2: Coordinates of the point + radius_0: Radius of the first Arc radius_1: Radius of the second Arc Returns: |