Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-10-27 17:36:56 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-10-27 21:52:49 +0300
commit10789c53290eb004ba2f254d200dcfff8dbf107e (patch)
treea4d92a42da071d9dbb073a316f024a54c04a33aa /intern/cycles/blender
parenta8a1f4847967f211e03b1e162e75043eabe91029 (diff)
Cycles: tweak scrambling distance UI grouping, and improve tooltip
Diffstat (limited to 'intern/cycles/blender')
-rw-r--r--intern/cycles/blender/addon/properties.py2
-rw-r--r--intern/cycles/blender/addon/ui.py13
2 files changed, 9 insertions, 6 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py
index e5853529d1c..1e98e6d0a7c 100644
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@ -346,7 +346,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
name="Scrambling Distance",
default=1.0,
min=0.0, max=1.0,
- description="Lower values give faster rendering with GPU rendering and less noise with all devices at the cost of possible artifacts if set too low",
+ description="Lower values give faster rendering with GPU rendering and less noise with all devices at the cost of possible artifacts if set too low. Only works when not using adaptive sampling",
)
preview_scrambling_distance: BoolProperty(
name="Scrambling Distance viewport",
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index a0bf6c1758f..0c9179b4ccf 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -289,13 +289,16 @@ class CYCLES_RENDER_PT_sampling_advanced(CyclesButtonsPanel, Panel):
col = layout.column(align=True)
col.active = not (cscene.use_adaptive_sampling and cscene.use_preview_adaptive_sampling)
col.prop(cscene, "sampling_pattern", text="Pattern")
+
+ layout.separator()
+
col = layout.column(align=True)
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 = not cscene.use_preview_adaptive_sampling
- col.prop(cscene, "preview_scrambling_distance", text="Viewport Scrambling Distance")
+ col.prop(cscene, "scrambling_distance", text="Scrambling Distance")
+ col.prop(cscene, "adaptive_scrambling_distance", text="Adaptive")
+ sub = col.row(align=True)
+ sub.active = not cscene.use_preview_adaptive_sampling
+ sub.prop(cscene, "preview_scrambling_distance", text="Viewport")
layout.separator()