Cycles: Update UI for Scrambling Distance Patch
The current UI for the Scramble Distance patch is grayed out depending on different settings that are enabled. However it didn't make much sense to me so I have updated when the UI is grayed out to hopefully make more sense to the end user. Differential Revision: https://developer.blender.org/D12963
This commit is contained in:
parent
0d6f2cb303
commit
974002743e
|
@ -287,14 +287,14 @@ class CYCLES_RENDER_PT_sampling_advanced(CyclesButtonsPanel, Panel):
|
|||
row.prop(cscene, "use_animated_seed", text="", icon='TIME')
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.active = not(cscene.use_adaptive_sampling)
|
||||
col.active = not (cscene.use_adaptive_sampling and cscene.use_preview_adaptive_sampling)
|
||||
col.prop(cscene, "sampling_pattern", text="Pattern")
|
||||
col = layout.column(align=True)
|
||||
col.active = not cscene.use_adaptive_sampling
|
||||
col.active = not (cscene.use_adaptive_sampling and cscene.use_preview_adaptive_sampling)
|
||||
col.prop(cscene, "scrambling_distance", text="Scrambling Distance Strength")
|
||||
col.prop(cscene, "adaptive_scrambling_distance", text="Adaptive Scrambling Distance")
|
||||
col = layout.column(align=True)
|
||||
col.active = ((cscene.scrambling_distance < 1.0) or cscene.adaptive_scrambling_distance) and not cscene.use_adaptive_sampling
|
||||
col.active = not cscene.use_preview_adaptive_sampling
|
||||
col.prop(cscene, "preview_scrambling_distance", text="Viewport Scrambling Distance")
|
||||
|
||||
layout.separator()
|
||||
|
|
Loading…
Reference in New Issue