Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| cscene = scene.cycles | cscene = scene.cycles | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column() | col = split.column() | ||||
| col.prop(cscene, "film_exposure") | col.prop(cscene, "film_exposure") | ||||
| col.prop(cscene, "film_transparent") | col.separator() | ||||
| col = split.column() | |||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.prop(cscene, "pixel_filter_type", text="") | sub.prop(cscene, "pixel_filter_type", text="") | ||||
| if cscene.pixel_filter_type != 'BOX': | if cscene.pixel_filter_type != 'BOX': | ||||
| sub.prop(cscene, "filter_width", text="Width") | sub.prop(cscene, "filter_width", text="Width") | ||||
| col = split.column() | |||||
| col.prop(cscene, "film_transparent") | |||||
| sub = col.row() | |||||
| sub.prop(cscene, "film_transparent_glass", text="Transparent Glass") | |||||
| sub.active = cscene.film_transparent | |||||
| sub = col.row() | |||||
| sub.prop(cscene, "film_transparent_roughness", text="Roughness Threshold") | |||||
| sub.active = cscene.film_transparent and cscene.film_transparent_glass | |||||
| class CYCLES_RENDER_PT_performance(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_performance(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Performance" | bl_label = "Performance" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 1,493 Lines • Show Last 20 Lines | |||||