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:
Diffstat (limited to 'modules/snap_context/bgl_ext.py')
-rw-r--r--modules/snap_context/bgl_ext.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/snap_context/bgl_ext.py b/modules/snap_context/bgl_ext.py
index 46ce3186..f8dbff09 100644
--- a/modules/snap_context/bgl_ext.py
+++ b/modules/snap_context/bgl_ext.py
@@ -128,13 +128,3 @@ def bgl_Buffer_reshape(buf, shape):
del c_buf
del c_tmp_buf
del tmp_buf
-
-
-def get_clip_planes(rv3d):
- #(int)(&((struct RegionView3D *)0)->rflag) == 842
- #(int)(&((struct RegionView3D *)0)->clip) == 464
- rv3d_ptr = rv3d.as_pointer()
- rflag = ctypes.c_short.from_address(rv3d_ptr + 842).value
- if rflag & 4: # RV3D_CLIPPING
- clip = (6 * (4 * ctypes.c_float)).from_address(rv3d_ptr + 464)
- return bgl.Buffer(bgl.GL_FLOAT, (6, 4), clip)