diff options
-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: |