Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col.prop(cscene, "light_sampling_threshold", text="Light Threshold") | col.prop(cscene, "light_sampling_threshold", text="Light Threshold") | ||||
| for view_layer in scene.view_layers: | for view_layer in scene.view_layers: | ||||
| if view_layer.samples > 0: | if view_layer.samples > 0: | ||||
| layout.separator() | layout.separator() | ||||
| layout.row().prop(cscene, "use_layer_samples") | layout.row().prop(cscene, "use_layer_samples") | ||||
| break | break | ||||
| class CYCLES_RENDER_PT_sampling_light_tree(CyclesButtonsPanel, Panel): | |||||
| bl_label = "Many Lights Sampling" | |||||
| bl_parent_id = "CYCLES_RENDER_PT_sampling" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| return (context.scene.cycles.feature_set == 'EXPERIMENTAL') | |||||
| def draw_header(self, context): | |||||
| layout = self.layout | |||||
| scene = context.scene | |||||
| cscene = scene.cycles | |||||
| layout.prop(cscene, "use_light_tree", text="") | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| layout.use_property_split = True | |||||
| layout.use_property_decorate = False | |||||
| scene = context.scene | |||||
| cscene = scene.cycles | |||||
| layout.active = cscene.use_light_tree | |||||
| col = layout.column(align=True) | |||||
| col.prop(cscene, "splitting_threshold", text="Split Threshold") | |||||
| class CYCLES_RENDER_PT_subdivision(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_subdivision(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Subdivision" | bl_label = "Subdivision" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.scene.render.engine == 'CYCLES') and (context.scene.cycles.feature_set == 'EXPERIMENTAL') | return (context.scene.render.engine == 'CYCLES') and (context.scene.cycles.feature_set == 'EXPERIMENTAL') | ||||
| ▲ Show 20 Lines • Show All 1,949 Lines • ▼ Show 20 Lines | classes = ( | ||||
| CYCLES_PT_integrator_presets, | CYCLES_PT_integrator_presets, | ||||
| CYCLES_PT_performance_presets, | CYCLES_PT_performance_presets, | ||||
| CYCLES_RENDER_PT_sampling, | CYCLES_RENDER_PT_sampling, | ||||
| CYCLES_RENDER_PT_sampling_viewport, | CYCLES_RENDER_PT_sampling_viewport, | ||||
| CYCLES_RENDER_PT_sampling_viewport_denoise, | CYCLES_RENDER_PT_sampling_viewport_denoise, | ||||
| CYCLES_RENDER_PT_sampling_render, | CYCLES_RENDER_PT_sampling_render, | ||||
| CYCLES_RENDER_PT_sampling_render_denoise, | CYCLES_RENDER_PT_sampling_render_denoise, | ||||
| CYCLES_RENDER_PT_sampling_advanced, | CYCLES_RENDER_PT_sampling_advanced, | ||||
| CYCLES_RENDER_PT_sampling_light_tree, | |||||
| CYCLES_RENDER_PT_light_paths, | CYCLES_RENDER_PT_light_paths, | ||||
| CYCLES_RENDER_PT_light_paths_max_bounces, | CYCLES_RENDER_PT_light_paths_max_bounces, | ||||
| CYCLES_RENDER_PT_light_paths_clamping, | CYCLES_RENDER_PT_light_paths_clamping, | ||||
| CYCLES_RENDER_PT_light_paths_caustics, | CYCLES_RENDER_PT_light_paths_caustics, | ||||
| CYCLES_RENDER_PT_light_paths_fast_gi, | CYCLES_RENDER_PT_light_paths_fast_gi, | ||||
| CYCLES_RENDER_PT_volumes, | CYCLES_RENDER_PT_volumes, | ||||
| CYCLES_RENDER_PT_subdivision, | CYCLES_RENDER_PT_subdivision, | ||||
| CYCLES_RENDER_PT_curves, | CYCLES_RENDER_PT_curves, | ||||
| ▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines | |||||