From 20c708d4714799363d2ad0011db23e1c02cd4f43 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 29 Aug 2016 01:36:13 +1200 Subject: GPencil UI: Make "Tint" settings take full width of panel in 2D editors Parenting options are not visible there (i.e. they're only for the 3D view), so reserving space that isn't going to be used in those editors doesn't really make much sense. Furthermore, those property regions are often quite narrow too, so it doesn't help too much to keep these settings so narrow there. --- release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py') diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 677c7b9960e..65f1fdf1fd5 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -834,7 +834,10 @@ class GreasePencilDataPanel: split.prop(gpl, "show_points") # Offsets + Parenting (where available) - split = layout.split(percentage=0.5) + if context.space_data.type == 'VIEW_3D': + split = layout.split(percentage=0.5) + else: + split = layout.column() # parenting is not available in 2D editors... split.active = not gpl.lock # Offsets - Color Tint -- cgit v1.2.3