From b3600e4e5bcee6e2c25c7442c49f612a7182111f Mon Sep 17 00:00:00 2001 From: meta-androcto <meta.androcto1@gmail.com> Date: Sun, 22 Dec 2019 09:51:40 +1100 Subject: [PATCH] Fix: T72630 Context menu, cursor to edge intersect --- space_view3d_spacebar_menu/snap_origin_cursor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/space_view3d_spacebar_menu/snap_origin_cursor.py b/space_view3d_spacebar_menu/snap_origin_cursor.py index b35bd9761..f10f2dfc0 100644 --- a/space_view3d_spacebar_menu/snap_origin_cursor.py +++ b/space_view3d_spacebar_menu/snap_origin_cursor.py @@ -180,7 +180,7 @@ def edgeIntersect(context, operator): return point = line[0].lerp(line[1], 0.5) - context.scene.cursor.location = obj.matrix_world * point + context.scene.cursor.location = obj.matrix_world @ point # Cursor Edge Intersection Operator # @@ -196,8 +196,8 @@ class VIEW3D_OT_CursorToEdgeIntersection(Operator): def execute(self, context): # Prevent unsupported Execution in Local View modes - space_data = bpy.context.space_data - if True in space_data.layers_local_view: + space = bpy.context.space_data + if space.local_view: self.report({'INFO'}, 'Global Perspective modes only unable to continue.') return {'FINISHED'} edgeIntersect(context, self) -- GitLab