[Bf-extensions-cvs] [96ac71a] master: Update for changes to ray_cast
Campbell Barton
noreply at git.blender.org
Wed Dec 2 12:01:41 CET 2015
Commit: 96ac71a2f0ac696eb863541792793044abd53d17
Author: Campbell Barton
Date: Wed Dec 2 21:17:13 2015 +1100
Branches: master
https://developer.blender.org/rBA96ac71a2f0ac696eb863541792793044abd53d17
Update for changes to ray_cast
===================================================================
M object_print3d_utils/mesh_helpers.py
===================================================================
diff --git a/object_print3d_utils/mesh_helpers.py b/object_print3d_utils/mesh_helpers.py
index bc1869d..5c72f4e 100644
--- a/object_print3d_utils/mesh_helpers.py
+++ b/object_print3d_utils/mesh_helpers.py
@@ -180,10 +180,11 @@ def bmesh_check_thick_object(obj, thickness):
# Cast the ray backwards
p_a = p - no_sta
p_b = p - no_end
+ p_dir = p_b - p_a
- co, no, index = ray_cast(p_a, p_b)
+ ok, co, no, index = ray_cast(p_a, p_dir, p_dir.length)
- if index != -1:
+ if ok:
# Add the face we hit
for f_iter in (f, bm_faces_new[index]):
# if the face wasn't triangulated, just use existing
More information about the Bf-extensions-cvs
mailing list