Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-08-05 19:16:08 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-08-05 19:16:08 +0300
commit82ed41ec632483fa9260d90dae7afdf3192c509b (patch)
tree61661ba89a7394fe151be61e96cc023ef6393f1b /archipack/archipack_object.py
parentf905183239186a6ae893adbad665119a67e144ba (diff)
Update calls to `Scene.ray_cast()` to pass depsgraph instead of view layer
This is in light of the change in Blender rBe03d53874dac5f.
Diffstat (limited to 'archipack/archipack_object.py')
-rw-r--r--archipack/archipack_object.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archipack/archipack_object.py b/archipack/archipack_object.py
index 8c908214..f513b506 100644
--- a/archipack/archipack_object.py
+++ b/archipack/archipack_object.py
@@ -259,7 +259,7 @@ class ArchipackDrawTool(ArchipackCollectionManager):
view_vector_mouse = region_2d_to_vector_3d(region, rv3d, co2d)
ray_origin_mouse = region_2d_to_origin_3d(region, rv3d, co2d)
res, pos, normal, face_index, object, matrix_world = context.scene.ray_cast(
- view_layer=context.view_layer,
+ depsgraph=context.view_layer.depsgraph,
origin=ray_origin_mouse,
direction=view_vector_mouse)
return res, pos, normal, face_index, object, matrix_world