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-07-21 16:38:01 +0400
committerJoshua Leung <aligorith@gmail.com>2009-07-21 16:38:01 +0400
commit7284eb6d9119f70766242f490a0dc841e01cc585 (patch)
treef7684fd649276dd967fc900f05da4bad33a808ae /release/ui/buttons_data_armature.py
parente18164dbab59ae5c9f0f1dd1ba12d1a97538919b (diff)
2.5 - More work on Bone Groups
* Added a new UI Template for the 3-colour picker used to visualise + select the custom colours for a bone group. * Finished wrapping the colour properties for Bone Groups in RNA. Although changing the colour-set used will change the displayed/cached colours, changing the colours via the colour wells will not change the colour set to 'custom' (as per 2.4x) yet. This needs a nice solution... * Fixed context-related bugs with the Assign/Remove operators for bone groups. These were using context-iterators for selected posechannels, but that was only defined/valid for the 3d view (but not for the buttons window), hence a failure in that case.
Diffstat (limited to 'release/ui/buttons_data_armature.py')
-rw-r--r--release/ui/buttons_data_armature.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py
index 8eb7ba59c70..ad34d867350 100644
--- a/release/ui/buttons_data_armature.py
+++ b/release/ui/buttons_data_armature.py
@@ -101,8 +101,13 @@ class DATA_PT_bone_groups(DataButtonsPanel):
group = pose.active_bone_group
if group:
- row = layout.row()
- row.itemR(group, "name")
+ col = layout.column()
+ col.itemR(group, "name")
+
+ split = layout.split(0.5)
+ split.itemR(group, "color_set")
+ if group.color_set:
+ split.template_triColorSet(group, "colors")
row = layout.row(align=True)