diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-31 17:14:05 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-31 17:14:13 +0300 |
commit | d803b4e43b11bffc819d130c811f0e6f03195d57 (patch) | |
tree | e1bc9346e3655cfb31e7eb147c56a40598e78998 /release/scripts | |
parent | d41f448b3bb34e56f2c4a082ccd1457e80ef1849 (diff) |
UI: Grease Pencil Simplify tweaks
Single-column layout and tweaks to tooltips.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_scene.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index 7832a5027d4..e324e7a9882 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -569,7 +569,8 @@ class SCENE_PT_simplify_render(SceneButtonsPanel, Panel): class SCENE_PT_simplify_greasepencil(SceneButtonsPanel, Panel): - bl_label = "Simplify Grease Pencil" + bl_label = "Grease Pencil" + bl_parent_id = "SCENE_PT_simplify" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME', 'BLENDER_CLAY', 'BLENDER_EEVEE'} bl_options = {'DEFAULT_CLOSED'} @@ -579,21 +580,22 @@ class SCENE_PT_simplify_greasepencil(SceneButtonsPanel, Panel): def draw(self, context): layout = self.layout + layout.use_property_split = True rd = context.scene.render layout.active = rd.simplify_gpencil - row = layout.row() - row.prop(rd, "simplify_gpencil_onplay", text="Only on Play") - - split = layout.split() - - col = split.column() - col.prop(rd, "simplify_gpencil_view_fill", text="Fill") - col.prop(rd, "simplify_gpencil_remove_lines", text="Remove Fill Lines") + col = layout.column() + col.prop(rd, "simplify_gpencil_onplay", text="Playback Only") col.prop(rd, "simplify_gpencil_view_modifier", text="Modifiers") + col = layout.column(align=True) + col.prop(rd, "simplify_gpencil_view_fill") + sub = col.column() + sub.active = rd.simplify_gpencil_view_fill + sub.prop(rd, "simplify_gpencil_remove_lines", text="Lines") + class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel): COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'} |