From 3ee0396ec854f80957dd7061d2980d4923598a3a Mon Sep 17 00:00:00 2001 From: Stephen Leger Date: Wed, 11 Sep 2019 01:00:10 +0200 Subject: Archipack: bugfix raycast in wall fit roof --- archipack/archipack_wall2.py | 6 ++++-- 1 file 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: -- cgit v1.2.3