mesh_snap_utilities_line: fix missing detail in last update.

I should've tested first.
This commit is contained in:
Germano Cavalcante 2019-05-29 18:19:42 -03:00
parent f3352059b3
commit 41394f54d4
2 changed files with 15 additions and 1 deletions

View File

@ -22,7 +22,7 @@
bl_info = {
"name": "Snap_Utilities_Line",
"author": "Germano Cavalcante",
"version": (5, 9, 14),
"version": (5, 9, 15),
"blender": (2, 80, 0),
"location": "View3D > TOOLS > Line Tool",
"description": "Extends Blender Snap controls",

View File

@ -70,6 +70,20 @@ class SnapDrawn():
self._batch_point = None
def _gl_state_push(self):
self._is_point_size_enabled = bgl.glIsEnabled(bgl.GL_PROGRAM_POINT_SIZE)
if self._is_point_size_enabled:
bgl.glDisable(bgl.GL_PROGRAM_POINT_SIZE)
# draw 3d point OpenGL in the 3D View
bgl.glEnable(bgl.GL_BLEND)
def _gl_state_restore(self):
bgl.glDisable(bgl.GL_BLEND)
if self._is_point_size_enabled:
bgl.glEnable(bgl.GL_PROGRAM_POINT_SIZE)
def batch_line_strip_create(self, coords):
from gpu.types import (
GPUVertBuf,