Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_paint_common.py
| Show First 20 Lines • Show All 602 Lines • ▼ Show 20 Lines | if mode == 'SCULPT': | ||||
| if capabilities.has_persistence: | if capabilities.has_persistence: | ||||
| ob = context.sculpt_object | ob = context.sculpt_object | ||||
| layout.separator() | layout.separator() | ||||
| layout.prop(brush, "use_persistent") | layout.prop(brush, "use_persistent") | ||||
| layout.operator("sculpt.set_persistent_base") | layout.operator("sculpt.set_persistent_base") | ||||
| layout.separator() | layout.separator() | ||||
| if capabilities.has_color: | if capabilities.has_color: | ||||
| UnifiedPaintPanel.prop_unified_color(layout, context, brush, "color", text="Paint Color") | ups = context.scene.tool_settings.unified_paint_settings | ||||
| row = layout.row(align=True) | |||||
| UnifiedPaintPanel.prop_unified_color(row, context, brush, "color", text="") | |||||
| UnifiedPaintPanel.prop_unified_color(row, context, brush, "secondary_color", text="") | |||||
| row.separator() | |||||
| row.operator("paint.brush_colors_flip", icon='FILE_REFRESH', text="", emboss=False) | |||||
| row.prop(ups, "use_unified_color", text="", icon='BRUSHES_ALL') | |||||
| layout.prop(brush, "blend", text="Blend Mode") | layout.prop(brush, "blend", text="Blend Mode") | ||||
| if brush.sculpt_tool == 'CLAY_STRIPS': | if brush.sculpt_tool == 'CLAY_STRIPS': | ||||
| row = layout.row() | row = layout.row() | ||||
| row.prop(brush, "tip_roundness") | row.prop(brush, "tip_roundness") | ||||
| if brush.sculpt_tool == 'ELASTIC_DEFORM': | if brush.sculpt_tool == 'ELASTIC_DEFORM': | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 592 Lines • Show Last 20 Lines | |||||