Skip to content

Commit

Permalink
Fix: T72630 Context menu, cursor to edge intersect
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-androcto committed Dec 21, 2019
1 parent 4d6d1f7 commit b3600e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions space_view3d_spacebar_menu/snap_origin_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
Expand All @@ -196,8 +196,8 @@ def poll(cls, context):

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)
Expand Down

0 comments on commit b3600e4

Please sign in to comment.