[Bf-extensions-cvs] [26ba60a3] master: BlenderKit: update ray_cast to new API requirement (view_layer instead of depsgraph)
Vilém Duha
noreply at git.blender.org
Sun Aug 23 14:57:57 CEST 2020
Commit: 26ba60a3f0c8dd229a0ac8f36190490a1ebf5145
Author: Vilém Duha
Date: Sun Aug 23 14:57:34 2020 +0200
Branches: master
https://developer.blender.org/rBA26ba60a3f0c8dd229a0ac8f36190490a1ebf5145
BlenderKit: update ray_cast to new API requirement (view_layer instead of depsgraph)
===================================================================
M blenderkit/ui.py
===================================================================
diff --git a/blenderkit/ui.py b/blenderkit/ui.py
index 47bf1a51..5333b65e 100644
--- a/blenderkit/ui.py
+++ b/blenderkit/ui.py
@@ -927,7 +927,7 @@ def mouse_raycast(context, mx, my):
vec = ray_target - ray_origin
has_hit, snapped_location, snapped_normal, face_index, object, matrix = bpy.context.scene.ray_cast(
- bpy.context.view_layer.depsgraph, ray_origin, vec)
+ bpy.context.view_layer, ray_origin, vec)
# rote = mathutils.Euler((0, 0, math.pi))
randoffset = math.pi
More information about the Bf-extensions-cvs
mailing list