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:
authorCampbell Barton <ideasman42@gmail.com>2015-12-02 13:17:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-02 13:17:28 +0300
commit96ac71a2f0ac696eb863541792793044abd53d17 (patch)
treecd24c5f511ae5b447fceaf7903ee1a1db3be7829
parent6b0d6e39a0a06fdeb324e36fa38253e72f24ba65 (diff)
Update for changes to ray_cast
-rw-r--r--object_print3d_utils/mesh_helpers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/object_print3d_utils/mesh_helpers.py b/object_print3d_utils/mesh_helpers.py
index bc1869df..5c72f4e4 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