[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34836] trunk/blender: Bone Colour Sets ( theme ones) can now be edited from the User
Joshua Leung
aligorith at gmail.com
Mon Feb 14 04:43:29 CET 2011
Revision: 34836
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34836
Author: aligorith
Date: 2011-02-14 03:43:28 +0000 (Mon, 14 Feb 2011)
Log Message:
-----------
Bone Colour Sets (theme ones) can now be edited from the User
Preferences UI again
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_userpref.py
trunk/blender/source/blender/makesrna/intern/rna_userdef.c
Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py 2011-02-14 03:36:15 UTC (rev 34835)
+++ trunk/blender/release/scripts/ui/space_userpref.py 2011-02-14 03:43:28 UTC (rev 34836)
@@ -635,7 +635,29 @@
layout.separator()
layout.separator()
+ elif theme.theme_area == 'COLOR_SETS':
+ col = split.column()
+ for i,ui in enumerate(theme.bone_color_sets):
+ col.label(text="Color Set %d:" % (i+1)) # i starts from 0
+
+ row = col.row()
+
+ subsplit = row.split(percentage=0.95)
+
+ padding = subsplit.split(percentage=0.15)
+ colsub = padding.column()
+ colsub = padding.column()
+ colsub.row().prop(ui, "normal")
+ colsub.row().prop(ui, "select")
+ colsub.row().prop(ui, "active")
+
+ subsplit = row.split(percentage=0.85)
+
+ padding = subsplit.split(percentage=0.15)
+ colsub = padding.column()
+ colsub = padding.column()
+ colsub.row().prop(ui, "show_colored_constraints")
else:
self._theme_generic(split, getattr(theme, theme.theme_area.lower()))
Modified: trunk/blender/source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2011-02-14 03:36:15 UTC (rev 34835)
+++ trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2011-02-14 03:43:28 UTC (rev 34836)
@@ -1708,6 +1708,7 @@
static EnumPropertyItem active_theme_area[] = {
{0, "USER_INTERFACE", ICON_UI, "User Interface", ""},
+ {18, "COLOR_SETS", ICON_COLOR, "Bone Color Sets", ""},
{1, "VIEW_3D", ICON_VIEW3D, "3D View", ""},
{2, "TIMELINE", ICON_TIME, "Timeline", ""},
{3, "GRAPH_EDITOR", ICON_IPO, "Graph Editor", ""},
More information about the Bf-blender-cvs
mailing list