Skip to content

Commit

Permalink
Archipack: bugfix raycast in wall fit roof
Browse files Browse the repository at this point in the history
  • Loading branch information
s-leger committed Sep 10, 2019
1 parent eb9bab0 commit 3ee0396
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions archipack/archipack_wall2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1639,8 +1639,10 @@ def find_roof(self, context, o, g):
# 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:
Expand Down

0 comments on commit 3ee0396

Please sign in to comment.