fix [#26906] Panorama Button (Camera Data Properties)
[blender-staging.git] / release / scripts / startup / bl_ui / properties_data_camera.py
index 24163dc1f3022cf5f05c95bf6b68378a509749ad..e5076fd20d5922c8855473fc7120b39ddbc8b55d 100644 (file)
@@ -78,7 +78,14 @@ class DATA_PT_camera(CameraButtonsPanel, bpy.types.Panel):
         elif cam.type == 'ORTHO':
             col.prop(cam, "ortho_scale")
 
-        layout.prop(cam, "use_panorama")
+        col = layout.column()
+        if cam.type == 'ORTHO':
+            if cam.use_panorama:
+                col.alert = True
+            else:
+                col.enabled = False
+
+        col.prop(cam, "use_panorama")
 
         split = layout.split()