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:
authorStephen Leger <stephen@3dservices.ch>2019-09-11 02:00:10 +0300
committerStephen Leger <stephen@3dservices.ch>2019-09-11 02:00:10 +0300
commit3ee0396ec854f80957dd7061d2980d4923598a3a (patch)
tree204de7613374a85810f814642907c5ac01e4939a /archipack
parenteb9bab0e7153fda8de113af9e3c54eca74c986ef (diff)
Archipack: bugfix raycast in wall fit roof
Diffstat (limited to 'archipack')
-rw-r--r--archipack/archipack_wall2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archipack/archipack_wall2.py b/archipack/archipack_wall2.py
index 78e3176f..2e3cc241 100644
--- a/archipack/archipack_wall2.py
+++ b/archipack/archipack_wall2.py
@@ -1639,8 +1639,10 @@ class archipack_wall2(ArchipackObject, Manipulable, PropertyGroup):
# prevent self intersect
o.hide_viewport = True
res, pos, normal, face_index, r, matrix_world = context.scene.ray_cast(
- p,
- up)
+ view_layer=context.view_layer,
+ origin=p,
+ direction=up)
+
o.hide_viewport = False
# print("res:%s" % res)
if res and r.data is not None and "archipack_roof" in r.data: