Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kim <pk15950@gmail.com>2022-09-08 07:00:43 +0300
committerPeter Kim <pk15950@gmail.com>2022-09-08 07:00:43 +0300
commite83f88c951e26b01893acee4f24b40a46062a41c (patch)
tree09f60bf7d4fc2ae1ef50668823e416fc675b252e /space_view3d_math_vis/draw.py
parentec84e3294593e2e26475f18c81e847bf00dc201e (diff)
parent0cd92169d40ae1c7e103ff269e850eaf1b901646 (diff)
Merge branch 'master' into xr-devxr-dev
Diffstat (limited to 'space_view3d_math_vis/draw.py')
-rw-r--r--space_view3d_math_vis/draw.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/space_view3d_math_vis/draw.py b/space_view3d_math_vis/draw.py
index 28722a99..0b7084eb 100644
--- a/space_view3d_math_vis/draw.py
+++ b/space_view3d_math_vis/draw.py
@@ -3,7 +3,6 @@
import bpy
import blf
import gpu
-import bgl
from gpu_extras.batch import batch_for_shader
from . import utils
@@ -29,7 +28,7 @@ COLOR_BOUNDING_BOX_ACTIVE = (1.0, 0.5, 0.0, 1.0)
def tag_redraw_areas():
context = bpy.context
- # Py cant access notifers
+ # Py can't access notifers
for window in context.window_manager.windows:
for area in window.screen.areas:
if area.type in ['VIEW_3D', 'PROPERTIES']:
@@ -126,9 +125,9 @@ def draw_callback_view():
with_bounding_box = not settings.bbox_hide
if settings.in_front:
- bgl.glDepthFunc(bgl.GL_ALWAYS)
+ gpu.state.depth_test_set('ALWAYS')
else:
- bgl.glDepthFunc(bgl.GL_LESS)
+ gpu.state.depth_test_set('LESS')
data_matrix, data_quat, data_euler, data_vector, data_vector_array = utils.console_math_data()
if settings.index in range(0,len(prop_states)):