diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-09 23:45:27 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-09 23:45:27 +0400 |
commit | d091856486cffc4351d6ded86de3c33afb3155b4 (patch) | |
tree | 6188adcf6f80afcdac4f41cc9733ac5853443e02 /release/ui/buttons_data_armature.py | |
parent | a2a04bab8ae70b2f665eb308a62e15d31e88de87 (diff) |
2.5: Buttons Window
* Fix poll() callback changes in recent commit, note that these have
to work with pinned context too.
* Hide header for context panels in py layout.
* Don't jump back when collapsing a panel, allow the view to be
over some empty space until you scroll back.
* Fix follow context icon, order had to be reversed in icon file.
* ID template now has icon as part of browse button instead of
outside the buttons.
Diffstat (limited to 'release/ui/buttons_data_armature.py')
-rw-r--r-- | release/ui/buttons_data_armature.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py index 7db2419fa9c..adca70e90dd 100644 --- a/release/ui/buttons_data_armature.py +++ b/release/ui/buttons_data_armature.py @@ -11,11 +11,8 @@ class DataButtonsPanel(bpy.types.Panel): class DATA_PT_context_arm(DataButtonsPanel): __idname__ = "DATA_PT_context_arm" - __label__ = " " + __no_header__ = True - def poll(self, context): - return ((context.object and context.object.type == 'ARMATURE') or context.armature) - def draw(self, context): layout = self.layout @@ -36,9 +33,6 @@ class DATA_PT_skeleton(DataButtonsPanel): __idname__ = "DATA_PT_skeleton" __label__ = "Skeleton" - def poll(self, context): - return ((context.object and context.object.type == 'ARMATURE') or context.armature) - def draw(self, context): layout = self.layout |