Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub = heading.column(align=True) | sub = heading.column(align=True) | ||||
| sub.active = cscene.use_preview_denoising | sub.active = cscene.use_preview_denoising | ||||
| sub.prop(cscene, "preview_denoising_start_sample", text="Start Sample") | sub.prop(cscene, "preview_denoising_start_sample", text="Start Sample") | ||||
| sub.prop(cscene, "preview_denoising_input_passes", text="Input Passes") | sub.prop(cscene, "preview_denoising_input_passes", text="Input Passes") | ||||
| sub_row = sub.row() | sub_row = sub.row() | ||||
| effective_preview_denoiser = get_effective_preview_denoiser(context) | effective_preview_denoiser = get_effective_preview_denoiser(context) | ||||
| if effective_preview_denoiser == 'OPENIMAGEDENOISE': | if effective_preview_denoiser == 'OPENIMAGEDENOISE': | ||||
| sub_row.prop(cscene, "use_preview_denoising_prefilter", text="Prefilter") | sub_row.prop(cscene, "preview_denoising_prefilter", text="Prefilter") | ||||
| class CYCLES_RENDER_PT_sampling_render(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_sampling_render(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Render" | bl_label = "Render" | ||||
| bl_parent_id = "CYCLES_RENDER_PT_sampling" | bl_parent_id = "CYCLES_RENDER_PT_sampling" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 646 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.active = denoiser != 'NONE' and cycles_view_layer.use_denoising | layout.active = denoiser != 'NONE' and cycles_view_layer.use_denoising | ||||
| col = layout.column() | col = layout.column() | ||||
| if denoiser == 'OPTIX': | if denoiser == 'OPTIX': | ||||
| col.prop(cycles_view_layer, "denoising_optix_input_passes") | col.prop(cycles_view_layer, "denoising_optix_input_passes") | ||||
| elif denoiser == 'OPENIMAGEDENOISE': | elif denoiser == 'OPENIMAGEDENOISE': | ||||
| col.prop(cycles_view_layer, "denoising_openimagedenoise_input_passes") | col.prop(cycles_view_layer, "denoising_openimagedenoise_input_passes") | ||||
| col.prop(cycles_view_layer, "use_denoising_prefilter", text="Prefilter") | col.prop(cycles_view_layer, "denoising_prefilter", text="Prefilter") | ||||
| class CYCLES_PT_post_processing(CyclesButtonsPanel, Panel): | class CYCLES_PT_post_processing(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Post Processing" | bl_label = "Post Processing" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_context = "output" | bl_context = "output" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ▲ Show 20 Lines • Show All 1,340 Lines • Show Last 20 Lines | |||||