Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| scene = context.scene | scene = context.scene | ||||
| ccscene = scene.cycles_curves | ccscene = scene.cycles_curves | ||||
| layout.active = ccscene.use_curves | layout.active = ccscene.use_curves | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(ccscene, "minimum_width", text="Min Pixels") | |||||
| col.prop(ccscene, "maximum_width", text="Max Extension") | |||||
| col.prop(ccscene, "shape", text="Shape") | col.prop(ccscene, "shape", text="Shape") | ||||
| if not (ccscene.primitive in {'CURVE_SEGMENTS', 'LINE_SEGMENTS'} and ccscene.shape == 'RIBBONS'): | if not (ccscene.primitive in {'CURVE_SEGMENTS', 'LINE_SEGMENTS'} and ccscene.shape == 'RIBBONS'): | ||||
| col.prop(ccscene, "cull_backfacing", text="Cull back-faces") | col.prop(ccscene, "cull_backfacing", text="Cull back-faces") | ||||
| col.prop(ccscene, "primitive", text="Primitive") | col.prop(ccscene, "primitive", text="Primitive") | ||||
| if ccscene.primitive == 'TRIANGLES' and ccscene.shape == 'THICK': | if ccscene.primitive == 'TRIANGLES' and ccscene.shape == 'THICK': | ||||
| col.prop(ccscene, "resolution", text="Resolution") | col.prop(ccscene, "resolution", text="Resolution") | ||||
| elif ccscene.primitive == 'CURVE_SEGMENTS': | elif ccscene.primitive == 'CURVE_SEGMENTS': | ||||
| ▲ Show 20 Lines • Show All 1,870 Lines • Show Last 20 Lines | |||||