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:
authorGermano Cavalcante <germano.costa@ig.com.br>2019-10-25 22:12:03 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2019-10-25 22:12:03 +0300
commit742b8663af7ca79808d672310f4d6f2730946230 (patch)
treedb3ffdf2ca190f693644d6ea418f4f1cdda31923 /mesh_snap_utilities_line/common_utilities.py
parent91fc865d8df563d82a4c31bbe44aa4bb9b1d0eee (diff)
Fix T71104: Addon: snap utilites line. Errors with some cuts
Normalize normal for more precision in `intersect_line_plane`.
Diffstat (limited to 'mesh_snap_utilities_line/common_utilities.py')
-rw-r--r--mesh_snap_utilities_line/common_utilities.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesh_snap_utilities_line/common_utilities.py b/mesh_snap_utilities_line/common_utilities.py
index 5a11a4c4..9c63c3f2 100644
--- a/mesh_snap_utilities_line/common_utilities.py
+++ b/mesh_snap_utilities_line/common_utilities.py
@@ -143,6 +143,8 @@ def get_snap_bm_geom(sctx, main_snap_obj, mcursor):
if l.link_loop_next.vert == tri[i] or l.link_loop_prev.vert == tri[i - 2]:
r_bm_geom = l.face
break
+ if r_loc is None:
+ r_loc = r_elem_co[0]
return r_snp_obj, r_loc, r_elem, r_elem_co, r_view_vector, r_orig, r_bm, r_bm_geom