diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-02 15:48:01 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-02 15:54:20 +0300 |
commit | ea57345adbc082b4110778dcf208f02ad7ff929e (patch) | |
tree | 864aa8eb28d370effb37e2556c02e8efcd5e6049 /release/scripts/startup/bl_ui/space_node.py | |
parent | fd6d14934777ad59da8e152020535957978a85f9 (diff) |
UI: Header consistency for Node editor
Also move use_insert_offset to the View menu as it is not toggled that often
to take space in the header.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_node.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 5d16d372dbe..3960f336cd0 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -53,7 +53,7 @@ class NODE_HT_header(Header): # layout.prop(snode, "tree_type", text="") if snode.tree_type == 'ShaderNodeTree': - layout.prop(snode, "shader_type", text="", expand=True) + layout.prop(snode, "shader_type", text="") ob = context.object if snode.shader_type == 'OBJECT' and ob: @@ -109,7 +109,7 @@ class NODE_HT_header(Header): row.template_ID(lineset, "linestyle", new="scene.freestyle_linestyle_new") elif snode.tree_type == 'TextureNodeTree': - layout.prop(snode, "texture_type", text="", expand=True) + layout.prop(snode, "texture_type", text="") NODE_MT_editor_menus.draw_collapsible(context, layout) @@ -144,16 +144,14 @@ class NODE_HT_header(Header): layout.separator_spacer() layout.template_ID(snode, "node_tree", new="node.new_node_tree") + layout.separator_spacer() + layout.template_running_jobs() + layout.prop(snode, "pin", text="") layout.operator("node.tree_path_parent", text="", icon='FILE_PARENT') - layout.separator() - - # Auto-offset nodes (called "insert_offset" in code) - layout.prop(snode, "use_insert_offset", text="") - # Snap row = layout.row(align=True) row.prop(toolsettings, "use_snap", text="") @@ -165,8 +163,6 @@ class NODE_HT_header(Header): row.operator("node.clipboard_copy", text="", icon='COPYDOWN') row.operator("node.clipboard_paste", text="", icon='PASTEDOWN') - layout.template_running_jobs() - class NODE_MT_editor_menus(Menu): bl_idname = "NODE_MT_editor_menus" @@ -204,11 +200,18 @@ class NODE_MT_view(Menu): def draw(self, context): layout = self.layout + snode = context.space_data + layout.operator("node.properties", icon='MENU_PANEL') layout.operator("node.toolbar", icon='MENU_PANEL') layout.separator() + # Auto-offset nodes (called "insert_offset" in code) + layout.prop(snode, "use_insert_offset") + + layout.separator() + layout.operator("view2d.zoom_in") layout.operator("view2d.zoom_out") |