[Bf-extensions-cvs] [ca94256f] blender2.8: Snap Utilities Line: Fixed verts and edges ignored on some faces
mano-wii
noreply at git.blender.org
Tue Oct 30 13:46:40 CET 2018
Commit: ca94256fe10b067d016d19455b250a563c22034d
Author: mano-wii
Date: Tue Oct 30 09:46:31 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBAca94256fe10b067d016d19455b250a563c22034d
Snap Utilities Line: Fixed verts and edges ignored on some faces
===================================================================
M mesh_snap_utilities_line/snap_context_l/__init__.py
===================================================================
diff --git a/mesh_snap_utilities_line/snap_context_l/__init__.py b/mesh_snap_utilities_line/snap_context_l/__init__.py
index 584f7ecb..c4b03156 100644
--- a/mesh_snap_utilities_line/snap_context_l/__init__.py
+++ b/mesh_snap_utilities_line/snap_context_l/__init__.py
@@ -216,10 +216,10 @@ class SnapContext():
r_value = value
if find_next_index:
last_value = value
- find_next_index = False
r_snap_obj = self._get_snap_obj_by_index(value)
if (r_snap_obj is None) or value < (r_snap_obj.data[1].first_index + len(r_snap_obj.data[1].tri_verts)):
continue
+ find_next_index = False
elif (r_snap_obj is None) or\
(value < r_snap_obj.data[1].first_index) or\
(value >= (r_snap_obj.data[1].first_index + r_snap_obj.data[1].get_tot_elems())):
@@ -422,6 +422,9 @@ class SnapContext():
int(self.mval[0]) - self._dist_px, int(self.mval[1]) - self._dist_px,
self.threshold, self.threshold, bgl.GL_RED_INTEGER, bgl.GL_UNSIGNED_INT, self._snap_buffer)
#bgl.glReadBuffer(bgl.GL_BACK)
+ #import numpy as np
+ #a = np.array(self._snap_buffer)
+ #print(a)
snap_obj, index = self._get_nearest_index()
#print("index:", index)
More information about the Bf-extensions-cvs
mailing list