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:
authorJoshua Leung <aligorith@gmail.com>2009-06-13 15:21:02 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-13 15:21:02 +0400
commitcd3c52db0334950f85911cca9f7b834647950f7b (patch)
tree89bff7bc80671e829e0421be02849be370538ddc /release/ui/buttons_data_armature.py
parenteed13b43b19c619ccdcda67b17c0da65ad44879c (diff)
2.5 - Armature Buttons + UI-Templates
Added a new template for layer-buttons, which auto-determines the layout of the buttons instead of relying on some hardcoded pattern for n-layers (i.e. 16 or 20 currently). This is a still bit rough, and could do with some refining to allow us to define what extra info (icons) should get drawn on the buttons or so. Currently, this is only used in the Armature buttons to allow showing/hiding layers.
Diffstat (limited to 'release/ui/buttons_data_armature.py')
-rw-r--r--release/ui/buttons_data_armature.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py
index fd317baf861..0b02eee9f7b 100644
--- a/release/ui/buttons_data_armature.py
+++ b/release/ui/buttons_data_armature.py
@@ -45,9 +45,9 @@ class DATA_PT_skeleton(DataButtonsPanel):
sub = split.column()
sub.itemL(text="Layers:")
- sub.itemL(text="LAYERS")
- #sub.itemR(arm, "layer")
- #sub.itemR(arm, "layer_protection")
+ sub.template_layers(arm, "layer")
+ sub.itemL(text="Protected Layers:")
+ sub.template_layers(arm, "layer_protection")
class DATA_PT_display(DataButtonsPanel):
__idname__ = "DATA_PT_display"