From 8accb5a46f4a498327ddd41ffb6e07972b373422 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 22 May 2019 08:39:15 +1000 Subject: Cleanup: minor corrections --- release/scripts/templates_py/operator_modal_view3d_raycast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts/templates_py') diff --git a/release/scripts/templates_py/operator_modal_view3d_raycast.py b/release/scripts/templates_py/operator_modal_view3d_raycast.py index 7569477af68..9130f47843a 100644 --- a/release/scripts/templates_py/operator_modal_view3d_raycast.py +++ b/release/scripts/templates_py/operator_modal_view3d_raycast.py @@ -19,7 +19,7 @@ def main(context, event): def visible_objects_and_duplis(): """Loop over (object, matrix) pairs (mesh only)""" - depsgraph = bpy.context.evaluated_depsgraph_get() + depsgraph = context.evaluated_depsgraph_get() for dup in depsgraph.object_instances: if dup.is_instance: # Real dupli instance obj = dup.instance_object -- cgit v1.2.3