Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-04-17 16:02:30 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-04-18 14:35:14 +0300
commit2d171d873c7ce2d30176b977eaa041aa0dfaac4b (patch)
tree6506b28c74f721f6cbd1deaa48c7e57d7cfa098f /release/scripts
parenta05b6199fc156a54ed3010ff44199e9d66c1b280 (diff)
UI: Expand Enum Items Over Multiple Rows
Expanding enum items in a small area would render the names with dots, what is a bad solution. When you use expand directly on a `grid_flow` or `column_flow`, it will render the items on multiple lines, giving more control to the developer. Reviewers: campbellbarton, brecht, mont29 Differential Revision: https://developer.blender.org/D4698
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 074773c6bc9..47db6f3ab7b 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4617,7 +4617,7 @@ class VIEW3D_PT_shading_color(Panel):
layout = self.layout
shading = VIEW3D_PT_shading.get_shading(context)
- layout.row().prop(shading, "color_type", expand=True)
+ layout.grid_flow(columns=3, align=True).prop(shading, "color_type", expand=True)
if shading.color_type == 'SINGLE':
layout.row().prop(shading, "single_color", text="")