[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41403] trunk/blender/release/scripts/ startup/bl_ui/space_view3d_toolbar.py: Sculpt UI:
Thomas Dinges
blender at dingto.org
Mon Oct 31 01:35:14 CET 2011
Revision: 41403
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41403
Author: dingto
Date: 2011-10-31 00:35:14 +0000 (Mon, 31 Oct 2011)
Log Message:
-----------
Sculpt UI:
* Code cleanup.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2011-10-31 00:34:19 UTC (rev 41402)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2011-10-31 00:35:14 UTC (rev 41403)
@@ -711,19 +711,14 @@
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,49 +735,35 @@
#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')
+ 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")
- 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
-
-
class VIEW3D_PT_tools_brush_tool(PaintPanel, Panel):
bl_label = "Tool"
bl_options = {'DEFAULT_CLOSED'}
More information about the Bf-blender-cvs
mailing list