diff options
author | meta-androcto <meta.androcto1@gmail.com> | 2017-05-16 02:37:49 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2017-05-16 02:37:49 +0300 |
commit | 3e69b9d0462ab3a40c7466d80d37b4d5b707bc2c (patch) | |
tree | c1467f23aa18612e23bbf171e4d39923c8d535c0 | |
parent | 77e2b2a08e7d4b9e4b333c72fbe482525259f077 (diff) |
spacebar menu disable edge intersect local mode: T51322
-rw-r--r-- | space_view3d_spacebar_menu.py | 5 |
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'} |