Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2019-12-22 01:51:40 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-12-22 01:51:40 +0300
commitb3600e4e5bcee6e2c25c7442c49f612a7182111f (patch)
tree6e9cd06b7353238054e3f4aaac7b4a7bc6978fea /space_view3d_spacebar_menu
parent4d6d1f7eed8bbeb9f439e4294a58568f9c13317b (diff)
Fix: T72630 Context menu, cursor to edge intersect
Diffstat (limited to 'space_view3d_spacebar_menu')
-rw-r--r--space_view3d_spacebar_menu/snap_origin_cursor.py6
1 files 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 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)