[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22555] branches/blender2.5/blender/ release/ui/space_view3d_toolbar.py: paint toolbox layout grouping
Campbell Barton
ideasman42 at gmail.com
Mon Aug 17 09:35:24 CEST 2009
Revision: 22555
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22555
Author: campbellbarton
Date: 2009-08-17 09:35:23 +0200 (Mon, 17 Aug 2009)
Log Message:
-----------
paint toolbox layout grouping
Modified Paths:
--------------
branches/blender2.5/blender/release/ui/space_view3d_toolbar.py
Modified: branches/blender2.5/blender/release/ui/space_view3d_toolbar.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_view3d_toolbar.py 2009-08-17 07:34:41 UTC (rev 22554)
+++ branches/blender2.5/blender/release/ui/space_view3d_toolbar.py 2009-08-17 07:35:23 UTC (rev 22555)
@@ -533,23 +533,44 @@
ipaint = context.tool_settings.image_paint
settings = context.tool_settings.image_paint
+ use_projection= ipaint.use_projection
col = layout.column()
col.itemR(ipaint, "use_projection")
sub = col.column()
- sub.active = ipaint.use_projection
+ sub.active = use_projection
sub.itemR(ipaint, "use_occlude")
sub.itemR(ipaint, "use_backface_cull")
- sub.itemR(ipaint, "use_normal_falloff")
- sub.itemR(ipaint, "use_stencil_layer")
- subsub = sub.column()
- subsub.active = ipaint.use_stencil_layer
- subsub.itemR(ipaint, "invert_stencil")
- if settings.tool == 'CLONE':
- sub.itemR(ipaint, "use_clone_layer")
+ split = layout.split()
+
+ col = split.column()
+ col.active = (use_projection)
+ col.itemR(ipaint, "use_normal_falloff")
+
+ col = split.column()
+ col.active = (ipaint.use_normal_falloff and use_projection)
+ col.itemR(ipaint, "normal_angle", text="")
+
+
+ split = layout.split(percentage=0.7)
+
+ col = split.column(align=False)
+ col.active = (use_projection)
+ col.itemR(ipaint, "use_stencil_layer")
+
+ col = split.column(align=False)
+ col.active = (use_projection and ipaint.use_stencil_layer)
+ col.itemR(ipaint, "invert_stencil", text="Inv")
+
+
+ col = layout.column()
+ sub = col.column()
+ sub.active = (settings.tool == 'CLONE')
+ sub.itemR(ipaint, "use_clone_layer")
+
+ sub = col.column()
sub.itemR(ipaint, "seam_bleed")
- sub.itemR(ipaint, "normal_angle")
# ********** default tools for particle mode ****************
More information about the Bf-blender-cvs
mailing list