Fix #30421: Panorama option in camera properties always disabled
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 2 Mar 2012 15:14:42 +0000 (15:14 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 2 Mar 2012 15:14:42 +0000 (15:14 +0000)
Issue was caused by comparing camera's type with PERSPECTIVE instead of PERSP which is
declared in RNA files.

Patch by Susanne H., thanks!

release/scripts/startup/bl_ui/properties_data_camera.py

index 484719e..5da41a6 100644 (file)
@@ -88,7 +88,7 @@ class DATA_PT_lens(CameraButtonsPanel, Panel):
             col.prop(cam, "ortho_scale")
 
         col = layout.column()
-        col.enabled = cam.type == 'PERSPECTIVE'
+        col.enabled = cam.type == 'PERSP'
 
         col.prop(cam, "use_panorama")