2.5/Paint:

* Fixed some bad UI pointed out by letterrip. People had made some quite bad changes (duplicating buttons, adding UI for non-existent features, even deleting UI for existing features!)
This commit is contained in:
Nicholas Bishop
2009-09-06 16:58:14 +00:00
parent 62138aaa5a
commit 952fa6d1c1

View File

@@ -342,9 +342,6 @@ class VIEW3D_PT_tools_brush(PaintPanel):
col = layout.column()
if brush.sculpt_tool != 'LAYER':
col.itemR(brush, "anchored")
if brush.sculpt_tool in ('DRAW', 'PINCH', 'INFLATE', 'LAYER', 'CLAY'):
col.itemR(brush, "flip_direction")
@@ -352,8 +349,6 @@ class VIEW3D_PT_tools_brush(PaintPanel):
col.itemR(brush, "persistent")
col.itemO("sculpt.set_persistent_base")
col.itemR(brush, "rake")
col.itemR(brush, "sculpt_tool")
# Texture Paint Mode #
@@ -426,24 +421,29 @@ class VIEW3D_PT_tools_brush_stroke(PaintPanel):
brush = settings.brush
texture_paint = context.texture_paint_object
if context.sculpt_object:
if brush.sculpt_tool != 'LAYER':
layout.itemR(brush, "anchored")
layout.itemR(brush, "rake")
layout.itemR(brush, "airbrush")
col = layout.column()
col.active = brush.airbrush
col.itemR(brush, "rate", slider=True)
if not texture_paint:
layout.itemR(brush, "smooth_stroke")
col = layout.column()
col.itemR(brush, "airbrush")
col.itemR(brush, "anchored")
col.itemR(brush, "rake")
col.active = brush.smooth_stroke
col.itemR(brush, "smooth_stroke_radius", text="Radius", slider=True)
col.itemR(brush, "smooth_stroke_factor", text="Factor", slider=True)
layout.itemR(brush, "space")
row = layout.row(align=True)
row.active = brush.space
row.itemR(brush, "spacing", text="Distance", slider=True)
if texture_paint:
row.itemR(brush, "spacing_pressure", toggle=True, icon='ICON_BRUSH_DATA', text="")
layout.itemR(brush, "airbrush")
col = layout.column()
col.active = brush.airbrush
col.itemR(brush, "rate", slider=True)
row.itemR(brush, "spacing_pressure", toggle=True, icon='ICON_BRUSH_DATA', text="")
class VIEW3D_PT_tools_brush_curve(PaintPanel):
__label__ = "Curve"