[Bf-extensions-cvs] [3ee0396e] master: Archipack: bugfix raycast in wall fit roof

Stephen Leger noreply at git.blender.org
Wed Sep 11 01:00:47 CEST 2019


Commit: 3ee0396ec854f80957dd7061d2980d4923598a3a
Author: Stephen Leger
Date:   Wed Sep 11 01:00:10 2019 +0200
Branches: master
https://developer.blender.org/rBA3ee0396ec854f80957dd7061d2980d4923598a3a

Archipack: bugfix raycast in wall fit roof

===================================================================

M	archipack/archipack_wall2.py

===================================================================

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:



More information about the Bf-extensions-cvs mailing list