Skip to content
Snippets Groups Projects
Commit e622fb9f authored by Vilém Duha's avatar Vilém Duha
Browse files

BlenderKit: update to ray_cast api change

parent 6f5f5609
No related branches found
No related tags found
No related merge requests found
......@@ -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, ray_origin, vec)
bpy.context.view_layer.depsgraph, ray_origin, vec)
# rote = mathutils.Euler((0, 0, math.pi))
randoffset = math.pi
......@@ -1805,7 +1805,8 @@ class UndoWithContext(bpy.types.Operator):
# w = wm.windows[0]
#
# C_dict = {'window': w, 'screen': w.screen}
bpy.ops.ed.undo_push(C_dict, 'INVOKE_REGION_WIN', message=self.message)
# bpy.ops.ed.undo_push(C_dict, 'INVOKE_REGION_WIN', message=self.message)
bpy.ops.ed.undo_push( 'INVOKE_REGION_WIN', message=self.message)
return {'FINISHED'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment