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 'object_print3d_utils/mesh_helpers.py')
-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