diff options
author | Stephen Leger <stephen@3dservices.ch> | 2019-09-11 02:00:10 +0300 |
---|---|---|
committer | Stephen Leger <stephen@3dservices.ch> | 2019-09-11 02:00:10 +0300 |
commit | 3ee0396ec854f80957dd7061d2980d4923598a3a (patch) | |
tree | 204de7613374a85810f814642907c5ac01e4939a /archipack/archipack_wall2.py | |
parent | eb9bab0e7153fda8de113af9e3c54eca74c986ef (diff) |
Archipack: bugfix raycast in wall fit roof
Diffstat (limited to 'archipack/archipack_wall2.py')
-rw-r--r-- | archipack/archipack_wall2.py | 6 |
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: |