diff options
author | William Reynish <william@reynish.com> | 2009-09-26 20:43:20 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2009-09-26 20:43:20 +0400 |
commit | 128dba3329076980d9a7c1cfa326cc3b17f05152 (patch) | |
tree | 0d2e61f90fe4d393a96fecbe6e28aec17250f24c /release/ui | |
parent | 903d8231d905f528d746410ca868fa6dd1f0714b (diff) |
Assorted tiny UI tweaks
Diffstat (limited to 'release/ui')
-rw-r--r-- | release/ui/buttons_data_camera.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/ui/buttons_data_camera.py b/release/ui/buttons_data_camera.py index aa107d8dbdd..0ac9a88eb35 100644 --- a/release/ui/buttons_data_camera.py +++ b/release/ui/buttons_data_camera.py @@ -38,13 +38,13 @@ class DATA_PT_camera(DataButtonsPanel): layout.itemR(cam, "type", expand=True) - row = layout.row(align=True) + row = layout.row() if cam.type == 'PERSP': - row.itemR(cam, "lens_unit", text="") if cam.lens_unit == 'MILLIMETERS': row.itemR(cam, "lens", text="Angle") elif cam.lens_unit == 'DEGREES': row.itemR(cam, "angle") + row.itemR(cam, "lens_unit", text="") elif cam.type == 'ORTHO': row.itemR(cam, "ortho_scale") @@ -86,11 +86,13 @@ class DATA_PT_camera_display(DataButtonsPanel): col.itemR(cam, "show_name", text="Name") col = split.column() + col.itemR(cam, "draw_size", text="Size") + col.itemS() col.itemR(cam, "show_passepartout", text="Passepartout") sub = col.column() sub.active = cam.show_passepartout sub.itemR(cam, "passepartout_alpha", text="Alpha", slider=True) - col.itemR(cam, "draw_size", text="Size") + bpy.types.register(DATA_PT_context_camera) bpy.types.register(DATA_PT_camera) |