forked from bartvdbraak/blender
Fix [#35852], hide Cycles sampling pattern menu, when using GPU.
This commit is contained in:
parent
dbec3af994
commit
15aed4127b
@ -85,7 +85,7 @@ class CyclesRender_PT_sampling(CyclesButtonsPanel, Panel):
|
|||||||
sub.prop(cscene, "mesh_light_samples", text="Mesh Light")
|
sub.prop(cscene, "mesh_light_samples", text="Mesh Light")
|
||||||
sub.prop(cscene, "subsurface_samples", text="Subsurface")
|
sub.prop(cscene, "subsurface_samples", text="Subsurface")
|
||||||
|
|
||||||
if cscene.feature_set == 'EXPERIMENTAL':
|
if cscene.feature_set == 'EXPERIMENTAL' and (device_type == 'NONE' or cscene.device == 'CPU'):
|
||||||
layout.row().prop(cscene, "sampling_pattern", text="Pattern")
|
layout.row().prop(cscene, "sampling_pattern", text="Pattern")
|
||||||
|
|
||||||
for rl in scene.render.layers:
|
for rl in scene.render.layers:
|
||||||
|
Loading…
Reference in New Issue
Block a user