camera sensor ui fix: grey out values when not affecting camera

reviewed by Thomas Dinges (DingTo)
This commit is contained in:
Dalai Felinto 2012-11-21 19:08:27 +00:00
parent 7503bd59e1
commit 1ecde9a137

@ -142,8 +142,12 @@ class DATA_PT_camera(CameraButtonsPanel, Panel):
if cam.sensor_fit == 'AUTO':
col.prop(cam, "sensor_width", text="Size")
else:
col.prop(cam, "sensor_width", text="Width")
col.prop(cam, "sensor_height", text="Height")
sub = col.column()
sub.active = cam.sensor_fit == 'HORIZONTAL'
sub.prop(cam, "sensor_width", text="Width")
sub = col.column()
sub.active = cam.sensor_fit == 'VERTICAL'
sub.prop(cam, "sensor_height", text="Height")
col = split.column(align=True)
col.prop(cam, "sensor_fit", text="")