[Bf-extensions-cvs] [b3600e4e] master: Fix: T72630 Context menu, cursor to edge intersect

meta-androcto noreply at git.blender.org
Sat Dec 21 23:51:54 CET 2019


Commit: b3600e4e5bcee6e2c25c7442c49f612a7182111f
Author: meta-androcto
Date:   Sun Dec 22 09:51:40 2019 +1100
Branches: master
https://developer.blender.org/rBAb3600e4e5bcee6e2c25c7442c49f612a7182111f

Fix: T72630 Context menu, cursor to edge intersect

===================================================================

M	space_view3d_spacebar_menu/snap_origin_cursor.py

===================================================================

diff --git a/space_view3d_spacebar_menu/snap_origin_cursor.py b/space_view3d_spacebar_menu/snap_origin_cursor.py
index b35bd976..f10f2dfc 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)



More information about the Bf-extensions-cvs mailing list