From d091856486cffc4351d6ded86de3c33afb3155b4 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 9 Jul 2009 19:45:27 +0000 Subject: 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. --- release/ui/buttons_data_lamp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'release/ui/buttons_data_lamp.py') diff --git a/release/ui/buttons_data_lamp.py b/release/ui/buttons_data_lamp.py index e6e870bad5d..e56f19b1dec 100644 --- a/release/ui/buttons_data_lamp.py +++ b/release/ui/buttons_data_lamp.py @@ -21,11 +21,8 @@ class DATA_PT_preview(DataButtonsPanel): class DATA_PT_context_lamp(DataButtonsPanel): __idname__ = "DATA_PT_context_lamp" - __label__ = " " + __no_header__ = True - def poll(self, context): - return (context.object.type == 'LAMP') - def draw(self, context): layout = self.layout @@ -258,3 +255,4 @@ bpy.types.register(DATA_PT_shadow) bpy.types.register(DATA_PT_sunsky) bpy.types.register(DATA_PT_spot) bpy.types.register(DATA_PT_falloff_curve) + -- cgit v1.2.3