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:
authorThomas Dinges <blender@dingto.org>2011-10-31 04:35:14 +0400
committerThomas Dinges <blender@dingto.org>2011-10-31 04:35:14 +0400
commit65b92d820af238f5ad694ecff07181f076590ccd (patch)
treef2cf95c3b22ea9f7c6fd1e53c60a5bbda0af7c07 /release
parentdc1b3d88b821db1316c85be5f48a60107796b651 (diff)
Sculpt UI:
* Code cleanup.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py57
1 files changed, 19 insertions, 38 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 13f34fa6647..168405c2279 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -711,19 +711,14 @@ class VIEW3D_PT_tools_brush_texture(PaintPanel, Panel):
if context.sculpt_object:
#XXX duplicated from properties_texture.py
- col.separator()
-
col.label(text="Brush Mapping:")
- row = col.row(align=True)
- row.prop(tex_slot, "map_mode", expand=True)
+ col.row().prop(tex_slot, "map_mode", expand=True)
col.separator()
col = layout.column()
col.active = tex_slot.map_mode in {'FIXED'}
col.label(text="Angle:")
-
- col = layout.column()
if not brush.use_anchor and brush.sculpt_tool not in {'GRAB', 'SNAKE_HOOK', 'THUMB', 'ROTATE'} and tex_slot.map_mode in {'FIXED'}:
col.prop(brush, "texture_angle_source_random", text="")
else:
@@ -740,47 +735,33 @@ class VIEW3D_PT_tools_brush_texture(PaintPanel, Panel):
#col.prop(brush, "use_rake", toggle=True, icon='PARTICLEMODE', text="")
col = layout.column()
- col.prop(tex_slot, "angle", text="")
col.active = tex_slot.map_mode in {'FIXED', 'TILED'}
-
+ col.prop(tex_slot, "angle", text="")
+
#col = layout.column()
#col.prop(brush, "use_random_rotation")
#col.active = (not brush.use_rake) and (not brush.use_anchor) and (brush.sculpt_tool not in {'GRAB', 'SNAKE_HOOK', 'THUMB', 'ROTATE'}) and tex_slot.map_mode in {'FIXED'}
split = layout.split()
+ split.prop(tex_slot, "offset")
+ split.prop(tex_slot, "scale")
- col = split.column()
- col.prop(tex_slot, "offset")
-
- col = split.column()
-
- col.prop(tex_slot, "scale")
-
- col = layout.column()
-
- row = col.row(align=True)
- row.label(text="Sample Bias:")
- row = col.row(align=True)
- row.prop(brush, "texture_sample_bias", slider=True, text="")
-
- row = col.row(align=True)
- row.label(text="Overlay:")
- row.active = tex_slot.map_mode in {'FIXED', 'TILED'}
-
- row = col.row(align=True)
-
- col = row.column()
-
+ col = layout.column(align=True)
+ col.label(text="Sample Bias:")
+ col.prop(brush, "texture_sample_bias", slider=True, text="")
+
+ col = layout.column(align=True)
+ col.active = tex_slot.map_mode in {'FIXED', 'TILED'}
+ col.label(text="Overlay:")
+
+ row = col.row()
if brush.use_texture_overlay:
- col.prop(brush, "use_texture_overlay", toggle=True, text="", icon='RESTRICT_VIEW_OFF')
+ row.prop(brush, "use_texture_overlay", toggle=True, text="", icon='RESTRICT_VIEW_OFF')
else:
- col.prop(brush, "use_texture_overlay", toggle=True, text="", icon='RESTRICT_VIEW_ON')
-
- col.active = tex_slot.map_mode in {'FIXED', 'TILED'}
-
- col = row.column()
- col.prop(brush, "texture_overlay_alpha", text="Alpha")
- col.active = tex_slot.map_mode in {'FIXED', 'TILED'} and brush.use_texture_overlay
+ row.prop(brush, "use_texture_overlay", toggle=True, text="", icon='RESTRICT_VIEW_ON')
+ sub = row.row()
+ sub.active = tex_slot.map_mode in {'FIXED', 'TILED'} and brush.use_texture_overlay
+ sub.prop(brush, "texture_overlay_alpha", text="Alpha")
class VIEW3D_PT_tools_brush_tool(PaintPanel, Panel):