Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_paint_common.py
| Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col.prop(brush, "use_space_attenuation") | col.prop(brush, "use_space_attenuation") | ||||
| if brush.use_curve: | if brush.use_curve: | ||||
| col.separator() | col.separator() | ||||
| col.template_ID(brush, "paint_curve", new="paintcurve.new") | col.template_ID(brush, "paint_curve", new="paintcurve.new") | ||||
| col.operator("paintcurve.draw") | col.operator("paintcurve.draw") | ||||
| col.separator() | col.separator() | ||||
| if brush.use_space: | if brush.use_space or brush.use_line or brush.use_curve: | ||||
| col.separator() | col.separator() | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| col.prop(brush, "dash_ratio", text="Dash Ratio") | col.prop(brush, "dash_ratio", text="Dash Ratio") | ||||
| col.prop(brush, "dash_samples", text="Dash Length") | col.prop(brush, "dash_samples", text="Dash Length") | ||||
| if (mode == 'SCULPT' and brush.sculpt_capabilities.has_jitter) or mode != 'SCULPT': | if (mode == 'SCULPT' and brush.sculpt_capabilities.has_jitter) or mode != 'SCULPT': | ||||
| col.separator() | col.separator() | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| ▲ Show 20 Lines • Show All 986 Lines • Show Last 20 Lines | |||||