spacebar menu disable edge intersect local mode: T51322

This commit is contained in:
Brendon Murphy 2017-05-16 09:37:49 +10:00
parent 77e2b2a08e
commit 3e69b9d046
1 changed files with 5 additions and 0 deletions

View File

@ -2838,6 +2838,11 @@ class VIEW3D_OT_CursorToEdgeIntersection(Operator):
return (obj is not None and obj.type == 'MESH')
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:
self.report({'INFO'}, 'Global Perspective modes only unable to continue.')
return {'FINISHED'}
edgeIntersect(context, self)
return {'FINISHED'}