Grey out high quality depth of field when it's not supported by GPU
This commit is contained in:
@@ -188,12 +188,14 @@ class DATA_PT_camera_dof(CameraButtonsPanel, Panel):
|
||||
sub.active = (cam.dof_object is None)
|
||||
sub.prop(cam, "dof_distance", text="Distance")
|
||||
|
||||
hq_support = dof_options.is_hq_supported
|
||||
col = split.column(align=True)
|
||||
col.label("Viewport:")
|
||||
col.prop(dof_options, "use_high_quality")
|
||||
sub = col.column()
|
||||
sub.active = hq_support
|
||||
sub.prop(dof_options, "use_high_quality")
|
||||
col.prop(dof_options, "fstop")
|
||||
|
||||
if dof_options.use_high_quality:
|
||||
if dof_options.use_high_quality and hq_support:
|
||||
col.prop(dof_options, "blades")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user