Skip to content

Commit

Permalink
Fix ray_cast call to accomodate Blender 2.91 API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
muhuk committed Nov 23, 2020
1 parent d73d98a commit 36e4f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshstats/overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _is_visible(
if normal and degrees(ray.angle(normal)) < 90:
return False
(result, loc, _, _, obj, _) = context.scene.ray_cast(
context.view_layer,
context.view_layer.depsgraph,
ray_origin,
ray
)
Expand Down

0 comments on commit 36e4f56

Please sign in to comment.