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>2017-05-16 02:37:49 +0300
committermeta-androcto <meta.androcto1@gmail.com>2017-05-16 02:37:49 +0300
commit3e69b9d0462ab3a40c7466d80d37b4d5b707bc2c (patch)
treec1467f23aa18612e23bbf171e4d39923c8d535c0
parent77e2b2a08e7d4b9e4b333c72fbe482525259f077 (diff)
spacebar menu disable edge intersect local mode: T51322
-rw-r--r--space_view3d_spacebar_menu.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py
index ddd387cd..f3b6364d 100644
--- a/space_view3d_spacebar_menu.py
+++ b/space_view3d_spacebar_menu.py
@@ -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'}