BlenderKit: update ray_cast to new API requirement (view_layer instead of depsgraph)
This commit is contained in:
parent
d5628d4134
commit
26ba60a3f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue