diff options
Diffstat (limited to 'intern/cycles/blender/addon/ui.py')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index faf057e13cc..a8f499cf324 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -263,7 +263,12 @@ class CyclesCamera_PT_dof(CyclesButtonsPanel, Panel): col = split.column() col.label("Aperture:") - col.prop(ccam, "aperture_size", text="Size") + sub = col.column(align=True) + sub.prop(ccam, "aperture_type", text="") + if ccam.aperture_type == 'RADIUS': + sub.prop(ccam, "aperture_size", text="Size") + elif ccam.aperture_type == 'FSTOP': + sub.prop(ccam, "aperture_fstop", text="Number") sub = col.column(align=True) sub.prop(ccam, "aperture_blades", text="Blades") |