Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-09 23:45:27 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-09 23:45:27 +0400
commitd091856486cffc4351d6ded86de3c33afb3155b4 (patch)
tree6188adcf6f80afcdac4f41cc9733ac5853443e02 /release/ui/buttons_data_lamp.py
parenta2a04bab8ae70b2f665eb308a62e15d31e88de87 (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_lamp.py')
-rw-r--r--release/ui/buttons_data_lamp.py6
1 files changed, 2 insertions, 4 deletions
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)
+