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:
authorCampbell Barton <ideasman42@gmail.com>2009-08-17 11:35:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-08-17 11:35:23 +0400
commit97db057a4cb872b5fecc027d1fcfface00d84ce3 (patch)
tree59f47d25f5f67e5dccdf08f0fd1a9ac626550545 /release
parent22e68ba1bba88b07f63fbe22f0f1809611d44983 (diff)
paint toolbox layout grouping
Diffstat (limited to 'release')
-rw-r--r--release/ui/space_view3d_toolbar.py39
1 files changed, 30 insertions, 9 deletions
diff --git a/release/ui/space_view3d_toolbar.py b/release/ui/space_view3d_toolbar.py
index 35c2400da4b..c4ee89bd1e9 100644
--- a/release/ui/space_view3d_toolbar.py
+++ b/release/ui/space_view3d_toolbar.py
@@ -533,23 +533,44 @@ class VIEW3D_PT_tools_texturepaint(View3DPanel):
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 ****************