Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(ccscene, "minimum_width", text="Min Pixels") | col.prop(ccscene, "minimum_width", text="Min Pixels") | ||||
| col.prop(ccscene, "maximum_width", text="Max Extension") | 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 == 'CURVE_SEGMENTS': | ||||
| col.prop(ccscene, "resolution", text="Resolution") | |||||
| elif ccscene.primitive == 'CURVE_SEGMENTS': | |||||
| col.prop(ccscene, "subdivisions", text="Curve subdivisions") | col.prop(ccscene, "subdivisions", text="Curve subdivisions") | ||||
| class CYCLES_RENDER_PT_volumes(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_volumes(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Volumes" | bl_label = "Volumes" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ▲ Show 20 Lines • Show All 1,862 Lines • Show Last 20 Lines | |||||