From 36e4f564c01b448cf4faf91968c5e877b725631c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atamert=20=C3=96l=C3=A7gen?= Date: Mon, 23 Nov 2020 11:36:52 +0300 Subject: [PATCH] Fix ray_cast call to accomodate Blender 2.91 API changes. See https://wiki.blender.org/wiki/Reference/Release_Notes/2.91/Python_API --- meshstats/overlay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshstats/overlay.py b/meshstats/overlay.py index d586f8f..b4c7a2b 100644 --- a/meshstats/overlay.py +++ b/meshstats/overlay.py @@ -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 )