Fix #30421: Panorama option in camera properties always disabled

Issue was caused by comparing camera's type with PERSPECTIVE instead of PERSP which is
declared in RNA files.

Patch by Susanne H., thanks!
This commit is contained in:
Sergey Sharybin 2012-03-02 15:14:42 +00:00
parent 63f5b96fe3
commit c8636ca3dd

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