[Bf-extensions-cvs] [e622fb9f] master: BlenderKit: update to ray_cast api change
Vilém Duha
noreply at git.blender.org
Wed Sep 16 11:56:06 CEST 2020
Commit: e622fb9f90d954b7a421071ba6a24cf1a6639064
Author: Vilém Duha
Date: Wed Sep 16 11:55:09 2020 +0200
Branches: master
https://developer.blender.org/rBAe622fb9f90d954b7a421071ba6a24cf1a6639064
BlenderKit: update to ray_cast api change
===================================================================
M blenderkit/ui.py
===================================================================
diff --git a/blenderkit/ui.py b/blenderkit/ui.py
index 76d4352e..0ea8f98a 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, 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'}
More information about the Bf-extensions-cvs
mailing list