From b9d7b953040bf18cd89bfb56da94032874d16ceb Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 31 Mar 2023 19:56:26 +0500 Subject: [PATCH] Revert part of 3a3d96be0 #2897 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverted part of the bgl to gpu transition (to not scare away people with annotations without antialiasing🙂) until I work out the complete solution. --- src/blenderbim/blenderbim/bim/module/drawing/decoration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/decoration.py b/src/blenderbim/blenderbim/bim/module/drawing/decoration.py index 7bc6540663..29b54c4493 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/decoration.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/decoration.py @@ -358,7 +358,7 @@ class BaseDecorator: bgl.glEnable(bgl.GL_LINE_SMOOTH) bgl.glHint(bgl.GL_LINE_SMOOTH_HINT, bgl.GL_NICEST) - gpu.state.blend_set("ALPHA") + bgl.glEnable(bgl.GL_BLEND) bgl.glBlendFunc(bgl.GL_SRC_ALPHA, bgl.GL_ONE_MINUS_SRC_ALPHA) self.shader.bind()