[Bf-blender-cvs] [2a47ede614d] greasepencil-object: UI: Add buttons at bottom bar

Antonio Vazquez noreply at git.blender.org
Wed Nov 22 19:11:58 CET 2017


Commit: 2a47ede614dd14834b832a9467b204e3223cf4d4
Author: Antonio Vazquez
Date:   Wed Nov 22 19:11:51 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB2a47ede614dd14834b832a9467b204e3223cf4d4

UI: Add buttons at bottom bar

Add Only Render and Lock Camera View options to bottom toolbar because use the options in panels break the drawing workflow and use a lot of space in the drawing area.

===================================================================

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 be52f449d64..1760b41fab9 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -155,6 +155,11 @@ class VIEW3D_HT_header(Header):
                 row.operator("gpencil.copy", text="", icon='COPYDOWN')
                 row.operator("gpencil.paste", text="", icon='PASTEDOWN')
 
+            view = context.space_data
+            row = layout.row(align=True)
+            row.prop(view, "show_only_render", text="", icon='IMAGE_COL')
+            row.prop(view, "lock_camera", text="", icon='CAMERA_DATA')
+
             layout.prop(gpd, "use_onion_skinning", text="Onion Skins", icon='PARTICLE_PATH')
 
             if gpd.use_stroke_edit_mode or gpd.is_stroke_sculpt_mode:



More information about the Bf-blender-cvs mailing list