diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-21 18:24:02 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-21 18:24:02 +0300 |
commit | 56c940988fb898209e8232399ba7eb45c6f98789 (patch) | |
tree | 22f951929dfcb37f4d278cc1d2c45cfd0b389783 /release | |
parent | 196e3920f7fd6e721b1b0273d23eff3db2a085b6 (diff) |
Fix flow layout for camera data Viewport Display panel.
Flow layout needs sub-layouts to properly identify 'cells' of its grid.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_camera.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_camera.py b/release/scripts/startup/bl_ui/properties_data_camera.py index 1183e458370..820630a7427 100644 --- a/release/scripts/startup/bl_ui/properties_data_camera.py +++ b/release/scripts/startup/bl_ui/properties_data_camera.py @@ -377,10 +377,14 @@ class DATA_PT_camera_display(CameraButtonsPanel, Panel): flow = layout.grid_flow(row_major=False, columns=0, even_columns=False, even_rows=False, align=False) - flow.prop(cam, "show_limits", text="Limits") - flow.prop(cam, "show_mist", text="Mist") - flow.prop(cam, "show_sensor", text="Sensor") - flow.prop(cam, "show_name", text="Name") + col = flow.column() + col.prop(cam, "show_limits", text="Limits") + col = flow.column() + col.prop(cam, "show_mist", text="Mist") + col = flow.column() + col.prop(cam, "show_sensor", text="Sensor") + col = flow.column() + col.prop(cam, "show_name", text="Name") class DATA_PT_camera_display_composition_guides(CameraButtonsPanel, Panel): bl_label = "Composition Guides" |