diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-11-05 12:19:58 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-11-05 12:19:58 +0400 |
commit | b6bb65cd21c6f0abe37d9578bbd8da49d45e7466 (patch) | |
tree | bab02c09b4106e2f84430b3e6c957467768987e2 | |
parent | 540c9d420853668ab6c3a3d402108d2f43abd2c5 (diff) |
Blender internal is using camera focal length when panorama rendering is used
This means it doesn't make sense hiding focal length settings for panorama
camera if blender internal renderer is used.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_camera.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_camera.py b/release/scripts/startup/bl_ui/properties_data_camera.py index c8d3bf65ef6..5f6036c8945 100644 --- a/release/scripts/startup/bl_ui/properties_data_camera.py +++ b/release/scripts/startup/bl_ui/properties_data_camera.py @@ -88,7 +88,8 @@ class DATA_PT_lens(CameraButtonsPanel, Panel): col.prop(cam, "ortho_scale") elif cam.type == 'PANO': - if context.scene.render.engine == 'CYCLES': + engine = context.scene.render.engine + if engine == 'CYCLES': ccam = cam.cycles col.prop(ccam, "panorama_type", text="Type") if ccam.panorama_type == 'FISHEYE_EQUIDISTANT': @@ -97,6 +98,13 @@ class DATA_PT_lens(CameraButtonsPanel, Panel): row = layout.row() row.prop(ccam, "fisheye_lens", text="Lens") row.prop(ccam, "fisheye_fov") + elif engine == 'BLENDER_RENDER': + row = col.row() + if cam.lens_unit == 'MILLIMETERS': + row.prop(cam, "lens") + elif cam.lens_unit == 'DEGREES': + row.prop(cam, "angle") + row.prop(cam, "lens_unit", text="") split = layout.split() |