[Bf-extensions-cvs] [a860f0a8] master: toolshelf menu disable edge intersect local mode: T51322

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


Commit: a860f0a8747b4357674cfda3d91429761b284205
Author: meta-androcto
Date:   Tue May 16 09:41:53 2017 +1000
Branches: master
https://developer.blender.org/rBACa860f0a8747b4357674cfda3d91429761b284205

toolshelf menu disable edge intersect local mode: T51322

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

M	space_view3d_toolshelf_menu.py

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

diff --git a/space_view3d_toolshelf_menu.py b/space_view3d_toolshelf_menu.py
index 1691ec51..91b413c8 100644
--- a/space_view3d_toolshelf_menu.py
+++ b/space_view3d_toolshelf_menu.py
@@ -2808,6 +2808,11 @@ class VIEW3D_OT_CursorToEdgeIntersection2(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