[Bf-extensions-cvs] [4b870b9] master: limit menu visibility to object mode only. (unreported: panel showed up in wrong modes)

meta-androcto noreply at git.blender.org
Thu Oct 22 06:31:09 CEST 2015


Commit: 4b870b9fc3c3c9dee0e99b9033641caa5878af65
Author: meta-androcto
Date:   Thu Oct 22 15:30:41 2015 +1100
Branches: master
https://developer.blender.org/rBA4b870b9fc3c3c9dee0e99b9033641caa5878af65

limit menu visibility to object mode only. (unreported: panel showed up in wrong modes)

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

M	ui_layer_manager.py

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

diff --git a/ui_layer_manager.py b/ui_layer_manager.py
index b4442d9..876e20c 100644
--- a/ui_layer_manager.py
+++ b/ui_layer_manager.py
@@ -22,7 +22,7 @@ bl_info = {
     "name": "Layer Management",
     "author": "Alfonso Annarumma, Bastien Montagne",
     "version": (1, 5, 2),
-    "blender": (2, 72, 0),
+    "blender": (2, 76, 0),
     "location": "Toolshelf > Layers Tab",
     "warning": "",
     "description": "Display and Edit Layer Name",
@@ -372,6 +372,7 @@ class SCENE_PT_namedlayer_layers(bpy.types.Panel):
     bl_label = "Layer Management"
     bl_options = {'DEFAULT_CLOSED'}
     bl_category = "Layers"
+    bl_context = "objectmode"
 
     @classmethod
     def poll(self, context):
@@ -519,6 +520,7 @@ class SCENE_UL_namedlayer_groups(UIList):
 class SCENE_PT_namedlayer_groups(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
+    bl_context = "objectmode"
     bl_category = "Layers"
     bl_label = "Layer Groups"
     bl_options = {'DEFAULT_CLOSED'}



More information about the Bf-extensions-cvs mailing list