[Bf-extensions-cvs] [3e69b9d0] master: spacebar menu disable edge intersect local mode: T51322

meta-androcto noreply at git.blender.org
Tue May 16 01:38:10 CEST 2017


Commit: 3e69b9d0462ab3a40c7466d80d37b4d5b707bc2c
Author: meta-androcto
Date:   Tue May 16 09:37:49 2017 +1000
Branches: master
https://developer.blender.org/rBA3e69b9d0462ab3a40c7466d80d37b4d5b707bc2c

spacebar menu disable edge intersect local mode: T51322

===================================================================

M	space_view3d_spacebar_menu.py

===================================================================

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'}



More information about the Bf-extensions-cvs mailing list