[Bf-blender-cvs] [37136803ce2] greasepencil-refactor: GPencil: Split overlay options in columns
Antonio Vazquez
noreply at git.blender.org
Fri Jan 10 16:35:47 CET 2020
Commit: 37136803ce2dad91000b8572594b2f108368db32
Author: Antonio Vazquez
Date: Fri Jan 10 16:35:43 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB37136803ce2dad91000b8572594b2f108368db32
GPencil: Split overlay options in columns
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index dec70cef6ed..9c8226ab4dd 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6475,13 +6475,20 @@ class VIEW3D_PT_overlay_gpencil_options(Panel):
sub.prop(overlay, "gpencil_paper_opacity", text="Fade Objects", slider=True)
sub.prop(overlay, "use_gpencil_fade_objects", text="", icon='OUTLINER_OB_GREASEPENCIL')
- if context.object.mode == 'EDIT_GPENCIL':
- layout.prop(overlay, "use_gpencil_show_directions")
- layout.prop(overlay, "use_gpencil_show_material_name")
-
if context.object.mode in {'EDIT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL'}:
- layout.prop(overlay, "use_gpencil_edit_lines", text="Edit Lines")
- layout.prop(overlay, "use_gpencil_multiedit_line_only", text="Show Edit Lines only in multiframe")
+ split = layout.split()
+ col = split.column()
+ col.prop(overlay, "use_gpencil_edit_lines", text="Edit Lines")
+ col = split.column()
+ col.prop(overlay, "use_gpencil_multiedit_line_only", text="Only in Multiframe")
+
+ if context.object.mode == 'EDIT_GPENCIL':
+ split = layout.split()
+ col = split.column()
+ col.prop(overlay, "use_gpencil_show_directions")
+ col = split.column()
+ col.prop(overlay, "use_gpencil_show_material_name", text="Material Name")
+
layout.prop(overlay, "vertex_opacity", text="Vertex Opacity", slider=True)
if context.object.mode in {'PAINT_GPENCIL', 'VERTEX_GPENCIL'}:
More information about the Bf-blender-cvs
mailing list